Fix build script sanitizer check.

This commit is contained in:
Eric Huss 2019-09-13 20:59:46 -07:00
parent c9edc02e83
commit 88e755607b
4 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@
use cmake::Config;
fn main() {
println!("cargo:rerun-if-env-changed=RUSTC_BUILD_SANITIZERS");
if env::var("RUSTC_BUILD_SANITIZERS") != Ok("1".to_string()) {
return;
}

View File

@ -4,6 +4,7 @@
use cmake::Config;
fn main() {
println!("cargo:rerun-if-env-changed=RUSTC_BUILD_SANITIZERS");
if env::var("RUSTC_BUILD_SANITIZERS") != Ok("1".to_string()) {
return;
}

View File

@ -4,6 +4,7 @@
use cmake::Config;
fn main() {
println!("cargo:rerun-if-env-changed=RUSTC_BUILD_SANITIZERS");
if env::var("RUSTC_BUILD_SANITIZERS") != Ok("1".to_string()) {
return;
}

View File

@ -4,6 +4,7 @@
use cmake::Config;
fn main() {
println!("cargo:rerun-if-env-changed=RUSTC_BUILD_SANITIZERS");
if env::var("RUSTC_BUILD_SANITIZERS") != Ok("1".to_string()) {
return;
}