rustc_llvm: don't use -g when LLVM_NDEBUG is set.

This commit is contained in:
Eduard-Mihai Burtescu 2020-02-12 02:15:34 +02:00
parent d6f4a2fbf9
commit b5e78a2fa7
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ fn main() {
if env::var_os("LLVM_NDEBUG").is_some() {
cfg.define("NDEBUG", None);
cfg.debug(false);
}
build_helper::rerun_if_changed_anything_in_dir(Path::new("../rustllvm"));