github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/storage/enable_cc.cc (about) 1 // Copyright 2019 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 // Since we link against C++ libraries, like RocksDB and libroach, we need to 12 // link against the C++ standard library. This presence of this file convinces 13 // cgo to link this package using the C++ compiler instead of the C compiler, 14 // which brings in the appropriate, platform-specific C++ library (e.g., libc++ 15 // on macOS or libstdc++ on Linux).