Skip to content

Commit b5e78a2

Browse files
committed
rustc_llvm: don't use -g when LLVM_NDEBUG is set.
1 parent d6f4a2f commit b5e78a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_llvm/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ fn main() {
151151

152152
if env::var_os("LLVM_NDEBUG").is_some() {
153153
cfg.define("NDEBUG", None);
154+
cfg.debug(false);
154155
}
155156

156157
build_helper::rerun_if_changed_anything_in_dir(Path::new("../rustllvm"));

0 commit comments

Comments
 (0)