about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorJake Goulding <jake.goulding@gmail.com>2016-09-25 11:59:12 -0400
committerJake Goulding <jake.goulding@gmail.com>2016-09-25 12:18:09 -0400
commitcc8727e67518e98a8ce3068d8dfc732a18f6b382 (patch)
tree6d1c1dac1ad327d1757c32df3a1193c7c3dd7abe /src/liballoc_jemalloc
parent2d1d4d199471dbdf0828acbc06cfe452463569af (diff)
downloadrust-cc8727e67518e98a8ce3068d8dfc732a18f6b382.tar.gz
rust-cc8727e67518e98a8ce3068d8dfc732a18f6b382.zip
Report which required build-time environment variable is not set
Diffstat (limited to 'src/liballoc_jemalloc')
-rw-r--r--src/liballoc_jemalloc/build.rs6
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");