Skip to content

Commit

Permalink
rustc_llvm: don't use -g when LLVM_NDEBUG is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Mar 23, 2020
1 parent d6f4a2f commit b5e78a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_llvm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit b5e78a2

Please sign in to comment.