diff options
| author | bors <bors@rust-lang.org> | 2016-09-26 11:12:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-26 11:12:42 -0700 |
| commit | 8ccfc695b56c102a2e7e95719b398bfa0a5e8af1 (patch) | |
| tree | da29ce45db9aa404ab742ab4484898cbc57aaa8c /src/liballoc_jemalloc | |
| parent | c2769285ad6d078c9a4499ad9e11278e4b78023c (diff) | |
| parent | cc8727e67518e98a8ce3068d8dfc732a18f6b382 (diff) | |
| download | rust-8ccfc695b56c102a2e7e95719b398bfa0a5e8af1.tar.gz rust-8ccfc695b56c102a2e7e95719b398bfa0a5e8af1.zip | |
Auto merge of #36719 - shepmaster:build-env-var-reporting, r=alexcrichton
Report which required build-time environment variable is not set
Diffstat (limited to 'src/liballoc_jemalloc')
| -rw-r--r-- | src/liballoc_jemalloc/build.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs index dc1b8d6ea98..8b31c5a5577 100644 --- a/src/liballoc_jemalloc/build.rs +++ b/src/liballoc_jemalloc/build.rs @@ -22,8 +22,8 @@ fn main() { println!("cargo:rustc-cfg=cargobuild"); println!("cargo:rerun-if-changed=build.rs"); - let target = env::var("TARGET").unwrap(); - let host = env::var("HOST").unwrap(); + let target = env::var("TARGET").expect("TARGET was not set"); + let host = env::var("HOST").expect("HOST was not set"); let build_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap()); let src_dir = env::current_dir().unwrap(); @@ -140,7 +140,7 @@ fn main() { .current_dir(&build_dir) .arg("build_lib_static") .arg("-j") - .arg(env::var("NUM_JOBS").unwrap())); + .arg(env::var("NUM_JOBS").expect("NUM_JOBS was not set"))); if target.contains("windows") { println!("cargo:rustc-link-lib=static=jemalloc"); |
