Commit 66ebee4
committed
Compiletest should not inherit all host RUSTFLAGS
I told rhelmot to do this in rust-lang#134913. But it's not correct; compiletest
shouldn't inherit RUSTFLAGS at all.
Pass a single new --host-rustcflags to compiletest instead, without overwriting any
existing arguments.
Fixes the following failure, which only happens when building llvm from
source and then running `x test --stage 1 ui-fulldeps`:
```
diff --git a/tests/ui-fulldeps/fluent-messages/test.stderr b/tests/ui-fulldeps/fluent-messages/test.stderr
index 0b3bb14..978ac46c5a2 100644
--- a/tests/ui-fulldeps/fluent-messages/test.stderr
+++ b/tests/ui-fulldeps/fluent-messages/test.stderr
@@ -1,3 +1,8 @@
+warning[E0602]: unknown lint: `linker_messages`
+ |
+ = note: requested on the command line with `-A linker_messages`
+ = note: `#[warn(unknown_lints)]` on by default
```1 parent ef148cd commit 66ebee4
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1969 | 1969 | | |
1970 | 1970 | | |
1971 | 1971 | | |
1972 | | - | |
1973 | | - | |
1974 | | - | |
| 1972 | + | |
| 1973 | + | |
1975 | 1974 | | |
1976 | | - | |
1977 | | - | |
1978 | | - | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
1979 | 1978 | | |
1980 | 1979 | | |
1981 | 1980 | | |
| |||
0 commit comments