Commit b604379
authored
Rollup merge of #162482 - GuillaumeGomez:run-make-backends, r=Kobzol
Make `run-make` testsuite work with other codegen backend than LLVM
Needed for #159924.
Currently, we always run `run-make` testsuite with the codegen backend rustc was compiled with. However, in CI it's compiled with LLVM, so when we want to test with GCC (with `--test-codegen-backend`), it compiles `rmake.rs` with the GCC backend, but when running the test, it doesn't use the GCC backend since it just calls `rustc`. So to get around that, I now pass the codegen backend through the environment and set it in the `rustc` function of `run_make_support`.
To be noted that for now it's only for the `rustc` function, no other command uses it. Should I extend it right away for all commands (well, likely only `cargo`) or just `rustc` for now is enough?
r? @jieyouxu80 files changed
Lines changed: 170 additions & 5 deletions
File tree
- src/tools
- compiletest/src/runtest
- run-make-support/src/external_deps
- tests/run-make
- amdgpu-kd
- atomic-lock-free
- avr-custom-target-missing-cpu
- avr-rjmp-offset
- branch-protection-check-IBT
- c-link-to-rust-va-list-fn
- cdylib
- codegen-options-parsing
- compressed-debuginfo
- const-destruct-stable-toolchain
- const-trait-stable-toolchain
- cross-lang-lto-upstream-rlibs
- cross-lang-lto
- embed-source-dwarf
- emit-stack-sizes
- extern-fn-explicit-align
- fat-lto-module-summary
- fat-then-thin-lto
- forced-unwind-terminate-pof
- issue-149402-suggest-unresolve
- link-cfg
- link-eh-frame-terminator
- linker-plugin-lto-fat
- llvm-ident
- llvm-location-discriminator-limit-dummy-span
- lto-avoid-object-duplication
- lto-empty
- lto-linkage-used-attr
- lto-long-filenames_cn
- lto-long-filenames
- lto-no-link-whole-rlib
- lto-readonly-lib
- lto-smoke-c
- lto-smoke
- min-global-align
- mismatching-target-triples
- missing-unstable-trait-bound
- musl-default-linking
- naked-symbol-visibility
- no-builtins-attribute
- no-builtins-linker-plugin-lto
- no-builtins-lto
- optimization-remarks-dir-pgo
- output-type-permutations
- pgo-branch-weights
- pgo-embed-bc-lto
- pgo-gen-lto
- pgo-gen-no-imp-symbols
- pgo-indirect-call-promotion
- pgo-use
- print-cfg
- print-request-help-stable-unstable
- print-target-cpus-native
- print-target-list
- print-to-output
- reachable-extern-fn-available-lto
- remap-path-prefix-dwarf
- repr128-dwarf
- reproducible-build-2
- reproducible-build
- requires-consistent-cpu-no-native
- rustc-help
- rustdoc
- flag-namespaces-from-rustc
- target-modifiers
- sanitizer-cdylib-link
- sanitizer-dylib-link
- sanitizer-staticlib-link
- simd-ffi
- split-debuginfo
- static-pie
- target-cpu-precedence
- target-specs
- target-without-atomic-cas
- thumb-interworking
- track-pgo-dep-info
- used-proc-macro
- volatile-intrinsics
- wasm-unexpected-features
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
0 commit comments