u-fix-cross-compiling-1.35-1.34-stage0
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 5 Sep 2019 07:06:23 +0000 (08:06 +0100)
committerXimin Luo <infinity0@debian.org>
Thu, 5 Sep 2019 07:06:23 +0000 (08:06 +0100)
Gbp-Pq: Name u-fix-cross-compiling-1.35-1.34-stage0.patch

src/bootstrap/bin/rustc.rs

index 595deb07ec82b56a28bec40c23aa0815621e3425..ba69c96d9c6b344812dfc6adcfa1d2e0555e30c1 100644 (file)
@@ -134,7 +134,7 @@ fn main() {
 
         // Link crates to the proc macro crate for the target, but use a host proc macro crate
         // to actually run the macros
-        if env::var_os("RUST_DUAL_PROC_MACROS").is_some() {
+        if env::var_os("RUST_DUAL_PROC_MACROS").is_some() && stage != "0" {
             cmd.arg("-Zdual-proc-macros");
         }