Skip to content

Commit 812117a

Browse files
committed
bootstrap: Move -Zexternal-macro-backtrace to builder
No need for this to be in `rustc.rs`
1 parent 4f35166 commit 812117a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ fn main() {
124124
cmd.arg("--sysroot").arg(&sysroot);
125125
}
126126

127-
cmd.arg("-Zexternal-macro-backtrace");
128-
129127
// Link crates to the proc macro crate for the target, but use a host proc macro crate
130128
// to actually run the macros
131129
if env::var_os("RUST_DUAL_PROC_MACROS").is_some() {

src/bootstrap/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,8 @@ impl<'a> Builder<'a> {
872872
rustflags.arg("-Zforce-unstable-if-unmarked");
873873
}
874874

875+
rustflags.arg("-Zexternal-macro-backtrace");
876+
875877
let want_rustdoc = self.doc_tests != DocTests::No;
876878

877879
// We synthetically interpret a stage0 compiler used to build tools as a

0 commit comments

Comments
 (0)