diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-02-12 02:15:34 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-03-23 02:36:36 +0200 |
| commit | b5e78a2fa77438e93091f93866b72fdc50e254fb (patch) | |
| tree | af26fe21dd707a614fcad3cdc8446a56eadc944f | |
| parent | d6f4a2fbf937c4033a51bee1c74c329259041dd1 (diff) | |
| download | rust-b5e78a2fa77438e93091f93866b72fdc50e254fb.tar.gz rust-b5e78a2fa77438e93091f93866b72fdc50e254fb.zip | |
rustc_llvm: don't use -g when LLVM_NDEBUG is set.
| -rw-r--r-- | src/librustc_llvm/build.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs index 9b4f03b3fb6..fcaeaf2e4b0 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -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")); |
