Setting cxx in cargo.toml doesn't pass through to build.rs scripts such as in rustc_llvm #40534
Labels
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
rustc_llvm
has a custombuild.rs
script that calls thegcc
crate and compiles bindings to LLVM. However, this doesn't call the C++ compiler passed in the cxx option in the cargo.toml configuration. Instead it just calls the default ofc++
. This ends up breaking builds for me because I want to use an up to date clang to compile rust instead of my distribution provided gcc which is too old. My current hacky workaround is to runenv CXX=clang++-3.8 CC=clang-3.8 ./x.py build
.The text was updated successfully, but these errors were encountered: