Skip to content

Commit

Permalink
Unconditionally remove DEBUG environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Apr 24, 2023
1 parent 40fe3a5 commit ab62d59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ fn build_afl(work_dir: &Path, base: Option<&Path>) {
// build just the runtime to avoid troubles with Xcode clang on macOS
.env("NO_BUILD", "1")
.env("DESTDIR", common::afl_dir(base))
.env("PREFIX", "");
if std::env::var("DEBUG").as_deref() == Ok("false") {
command.env_remove("DEBUG");
}
.env("PREFIX", "")
.env_remove("DEBUG");
let status = command.status().expect("could not run 'make'");
assert!(status.success());
}
Expand Down

0 comments on commit ab62d59

Please sign in to comment.