Skip to content

Commit edb735a

Browse files
committed
Fix compiletest compilation
1 parent edf33fe commit edb735a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test.sh

+18
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,24 @@ function test_rustc() {
165165
git checkout $(rustc -V | cut -d' ' -f3 | tr -d '(')
166166
export RUSTFLAGS=
167167

168+
git patch - <<EOF
169+
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs
170+
index 887d27fd6dca4..2c2239f2b83d1 100644
171+
--- a/src/tools/compiletest/src/header.rs
172+
+++ b/src/tools/compiletest/src/header.rs
173+
@@ -806,8 +806,8 @@ pub fn make_test_description<R: Read>(
174+
cfg: Option<&str>,
175+
) -> test::TestDesc {
176+
let mut ignore = false;
177+
#[cfg(not(bootstrap))]
178+
- let ignore_message: Option<String> = None;
179+
+ let ignore_message: Option<&str> = None;
180+
let mut should_fail = false;
181+
182+
let rustc_has_profiler_support = env::var_os("RUSTC_PROFILER_SUPPORT").is_some();
183+
184+
EOF
185+
168186
rm config.toml || true
169187

170188
cat > config.toml <<EOF

0 commit comments

Comments
 (0)