github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ccl/storageccl/engineccl/enable_cc.cc (about)

     1  // Copyright 2017 The Cockroach Authors.
     2  //
     3  // Licensed as a CockroachDB Enterprise file under the Cockroach Community
     4  // License (the "License"); you may not use this file except in compliance with
     5  // the License. You may obtain a copy of the License at
     6  //
     7  //     https://github.com/cockroachdb/cockroach/blob/master/licenses/CCL.txt
     8  
     9  // Since we link against C++ libraries, like RocksDB and libroach, we need to
    10  // link against the C++ standard library. This presence of this file convinces
    11  // cgo to link this package using the C++ compiler instead of the C compiler,
    12  // which brings in the appropriate, platform-specific C++ library (e.g., libc++
    13  // on macOS or libstdc++ on Linux).