about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2019-12-15 17:12:30 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2020-02-06 21:32:07 +0200
commitf6fc80206e9600ae753cdfbd762fb982afca48b0 (patch)
tree91bdbf8d40248f5ecc5fa5ea6d66e4c91ece1128 /src/bootstrap
parent8f286dbf27b61afdd96f632d0bc7f4c49fbb7d0f (diff)
rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/builder.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index 18f6fda7608..d12ee2935eb 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -847,7 +847,13 @@ impl<'a> Builder<'a> {
             rustflags.arg("-Zforce-unstable-if-unmarked");
         }
 
-        rustflags.arg("-Zexternal-macro-backtrace");
+        // cfg(bootstrap): the flag was renamed from `-Zexternal-macro-backtrace`
+        // to `-Zmacro-backtrace`, keep only the latter after beta promotion.
+        if stage == 0 {
+            rustflags.arg("-Zexternal-macro-backtrace");
+        } else {
+            rustflags.arg("-Zmacro-backtrace");
+        }
 
         let want_rustdoc = self.doc_tests != DocTests::No;