1
Fork 0

Support passing cflags/cxxflags/ldflags to LLVM build

This may be needed with some host compilers.
This commit is contained in:
Petr Hosek 2018-11-13 16:25:51 -08:00
parent 0bc0015f20
commit c6632725c1
4 changed files with 33 additions and 1 deletions

View file

@ -64,6 +64,10 @@ o("lldb", "rust.lldb", "build lldb")
o("missing-tools", "dist.missing-tools", "allow failures when building tools")
o("use-libcxx", "llvm.use_libcxx", "build LLVM with libc++")
o("cflags", "llvm.cflags", "build LLVM with these extra compiler flags")
o("cxxflags", "llvm.cxxflags", "build LLVM with these extra compiler flags")
o("ldflags", "llvm.ldflags", "build LLVM with these extra linker flags")
# Optimization and debugging options. These may be overridden by the release
# channel, etc.
o("optimize", "rust.optimize", "build optimized rust code")