Closed
Description
rustc_llvm
has a custom build.rs
script that calls the gcc
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 of c++
. 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 run env CXX=clang++-3.8 CC=clang-3.8 ./x.py build
.