about summary refs log tree commit diff
path: root/src/bootstrap/compile.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-03-25 22:50:07 +0100
committerJorge Aparicio <jorge@japaric.io>2019-03-25 22:50:07 +0100
commit7d365cf27f4249fc9b61ba8abfc813abe43f1cb7 (patch)
tree83e5bd92939c8d5ff7a07ba2acc85d720ead202a /src/bootstrap/compile.rs
parent8b8488ce8fc047282e7159343f30609417f9fa39 (diff)
downloadrust-7d365cf27f4249fc9b61ba8abfc813abe43f1cb7.tar.gz
rust-7d365cf27f4249fc9b61ba8abfc813abe43f1cb7.zip
compile all crates under test w/ -Zemit-stack-sizes
Diffstat (limited to 'src/bootstrap/compile.rs')
-rw-r--r--src/bootstrap/compile.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs
index 9498dbb5952..0d51d7c5ef3 100644
--- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
@@ -97,6 +97,8 @@ impl Step for Std {
         let _folder = builder.fold_output(|| format!("stage{}-std", compiler.stage));
         builder.info(&format!("Building stage{} std artifacts ({} -> {})", compiler.stage,
                 &compiler.host, target));
+        // compile with `-Z emit-stack-sizes`; see bootstrap/src/rustc.rs for more details
+        cargo.env("RUSTC_EMIT_STACK_SIZES", "1");
         run_cargo(builder,
                   &mut cargo,
                   &libstd_stamp(builder, compiler, target),
@@ -382,6 +384,8 @@ impl Step for Test {
         let _folder = builder.fold_output(|| format!("stage{}-test", compiler.stage));
         builder.info(&format!("Building stage{} test artifacts ({} -> {})", compiler.stage,
                 &compiler.host, target));
+        // compile with `-Z emit-stack-sizes`; see bootstrap/src/rustc.rs for more details
+        cargo.env("RUSTC_EMIT_STACK_SIZES", "1");
         run_cargo(builder,
                   &mut cargo,
                   &libtest_stamp(builder, compiler, target),