about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorjyn <github@jyn.dev>2025-02-12 23:01:22 -0500
committerjyn <github@jyn.dev>2025-02-12 23:04:33 -0500
commit66ebee4dd2f55dadca0eaad72139eb3c5ea4c6ea (patch)
tree89507d4dfa082dc2fbb69a859a14e2f785170236 /compiler/rustc_codegen_gcc
parentef148cd7eb00a5a973130dc6473da71fd6c487ee (diff)
downloadrust-66ebee4dd2f55dadca0eaad72139eb3c5ea4c6ea.tar.gz
rust-66ebee4dd2f55dadca0eaad72139eb3c5ea4c6ea.zip
Compiletest should not inherit all host RUSTFLAGS
I told rhelmot to do this in #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 0b3bb14ce51..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
```
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions