Skip to content

Commit 4d4fb27

Browse files
committed
Pass -Zbinary-dep-depinfo when testing rustc tests
1 parent e4e41b7 commit 4d4fb27

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

scripts/setup_rust_fork.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ std-features = ["panic-unwind"]
4949
EOF
5050

5151
cat <<EOF | git apply -
52+
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
53+
index 2e16f2cf27..3ac3df99a8 100644
54+
--- a/src/bootstrap/bootstrap.py
55+
+++ b/src/bootstrap/bootstrap.py
56+
@@ -1147,6 +1147,8 @@ class RustBuild(object):
57+
args += ["-Zwarnings"]
58+
env["CARGO_BUILD_WARNINGS"] = "deny"
59+
60+
+ env["RUSTFLAGS"] += " -Zbinary-dep-depinfo"
61+
+
62+
# Add RUSTFLAGS_BOOTSTRAP to RUSTFLAGS for bootstrap compilation.
63+
# Note that RUSTFLAGS_BOOTSTRAP should always be added to the end of
64+
# RUSTFLAGS, since that causes RUSTFLAGS_BOOTSTRAP to override RUSTFLAGS.
5265
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs
5366
index a656927b1f6..44fc5546fac 100644
5467
--- a/src/bootstrap/src/core/config/config.rs

0 commit comments

Comments
 (0)