rust/tests/run-make
Matthias Krüger a510cbdead
Rollup merge of #123763 - cuviper:host-rpath-run-make-v2, r=jieyouxu
Set the host library path in run-make v2

When the build is configured with `[rust] rpath = false`, we need to set
`LD_LIBRARY_PATH` (or equivalent) to what would have been the `RPATH`,
so the compiler can find its own libraries. The old `tools.mk` code has
this environment prefixed in the `$(BARE_RUSTC)` variable, so we just
need to wire up something similar for run-make v2.

This is now set while building each `rmake.rs` itself, as well as in the
`rust-make-support` helpers for `rustc` and `rustdoc` commands. This is
also available in a `set_host_rpath` function for manual commands, like
in the `compiler-builtins` test.
2024-04-12 04:38:21 +02:00
..
a-b-a-linker-guard Rework rmake support library to have a weakly-typed API with helper methods 2024-03-24 15:37:24 +00:00
alloc-no-oom-handling
alloc-no-rc
alloc-no-sync
allocator-shim-circular-deps Fix linker failures when #[global_allocator] is used in a dependency 2023-06-19 17:31:54 +00:00
allow-non-lint-warnings-cmdline
allow-warnings-cmdline-stability
archive-duplicate-names
arguments-non-c-like-enum Port argument-non-c-like-enum to Rust 2024-04-01 17:07:49 +01:00
artifact-incr-cache Save/restore more items in cache with incremental compilation 2024-04-06 10:59:24 -04:00
atomic-lock-free
bare-outfile
branch-protection-check-IBT
c-dynamic-dylib
c-dynamic-rlib
c-link-to-rust-dylib
c-link-to-rust-staticlib
c-link-to-rust-va-list-fn
c-static-dylib
c-static-rlib
c-unwind-abi-catch-lib-panic
c-unwind-abi-catch-panic
cat-and-grep-sanity-check
cdylib
cdylib-dylib-linkage
cdylib-fewer-symbols
codegen-options-parsing
comment-section Support .comment section like GCC/Clang (!llvm.ident) 2023-07-21 22:01:50 +02:00
compile-stdin
compiler-builtins Set the host library path in run-make v2 2024-04-10 17:25:10 -07:00
compiler-lookup-paths
compiler-lookup-paths-2
compiler-rt-works-on-mingw
compressed-debuginfo Update the minimum external LLVM to 16. 2023-11-21 22:40:16 +01:00
const_fn_mir [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
const-prop-lint
core-no-fp-fmt-parse Rewrite core-no-fp-fmt-parse in Rust 2024-03-30 19:40:18 -04:00
core-no-oom-handling
crate-data-smoke
crate-hash-rustc-version Remove support for alias -Z symbol-mangling-version 2023-11-02 18:41:33 +11:00
crate-name-priority
cross-lang-lto
cross-lang-lto-clang
cross-lang-lto-pgo-smoketest
cross-lang-lto-riscv-abi Convert tests/run-make/cross-lang-lto-riscv-abi to rmake 2024-04-09 05:25:51 +02:00
cross-lang-lto-upstream-rlibs
CURRENT_RUSTC_VERSION Rework rmake support library to have a weakly-typed API with helper methods 2024-03-24 15:37:24 +00:00
debug-assertions
debugger-visualizer-dep-info
dep-graph
dep-info
dep-info-doesnt-run-much
dep-info-spaces
doctests-keep-binaries rustdoc: Fix --test-run-directory and relative paths. 2023-06-17 17:20:02 -07:00
doctests-runtool rustdoc: Fix --test-run-directory and relative paths. 2023-06-17 17:20:02 -07:00
dump-ice-to-disk Use YYYY-MM-DDTHH_MM_SS as datetime format for ICE dump files 2023-10-17 17:31:47 +00:00
dump-mono-stats
duplicate-output-flavors
dylib-chain
emit
emit-named-files
emit-path-unhashed Fix tests 2023-09-10 15:50:48 +00:00
emit-shared-files
emit-stack-sizes Automatically enable cross-crate inlining for small functions 2023-10-17 19:53:51 -04:00
emit-to-stdout Bless run-make tests 2023-11-24 19:15:52 +01:00
env-dep-info
error-found-staticlib-instead-crate
error-writing-dependencies
exit-code run-make: make arg take AsRef<OsStr> instead of str 2024-04-09 19:55:06 +01:00
export-executable-symbols [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
extern-diff-internal-name
extern-flag-disambiguates
extern-flag-fun
extern-flag-pathless Verify that all crate sources are in sync 2023-07-19 14:47:05 +00:00
extern-flag-rename-transitive
extern-fn-explicit-align extern-fn-explicit-align test: remove unnecessary derives 2023-07-14 16:22:29 -04:00
extern-fn-generic
extern-fn-mangle
extern-fn-reachable
extern-fn-struct-passing-abi i686-windows: pass arguments with requested alignment > 4 indirectly 2023-07-10 19:19:38 -04:00
extern-fn-with-extern-types
extern-fn-with-packed-struct
extern-fn-with-union
extern-multiple-copies
extern-multiple-copies2
extern-overrides-distribution
extra-filename-with-temp-outputs
fmt-write-bloat
forced-unwind-terminate-pof
foreign-double-unwind
foreign-exceptions
foreign-rust-exceptions
fpic
glibc-staticlib-args
inaccessible-temp-dir
include_bytes_deps
incr-add-rust-src-component
incr-foreign-head-span Validate crate name in CLI option --extern 2023-09-20 18:50:40 +02:00
incr-prev-body-beyond-eof
incremental-debugger-visualizer
incremental-session-fail
inline-always-many-cgu
interdependent-c-libraries
intrinsic-unreachable Automatically enable cross-crate inlining for small functions 2023-10-17 19:53:51 -04:00
invalid-library
invalid-so
invalid-staticlib
issue64319
issue-10971-temps-dir
issue-11908
issue-14500
issue-14698
issue-15460
issue-18943
issue-20626
issue-22131
issue-24445
issue-25581
issue-26006
issue-26092
issue-28595
issue-28766
issue-30063
issue-33329
issue-35164
issue-36710
issue-37839
issue-37893
issue-38237
issue-40535
issue-46239
issue-47384
issue-47551 [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-51671
issue-53964
issue-64153
issue-68794-textrel-on-minimal-lib
issue-69368
issue-83045
issue-83112-incr-test-moved-file
issue-84395-lto-embed-bitcode
issue-85019-moved-src-dir
issue-85401-static-mir
issue-85441
issue-88756-default-output rustdoc: fix test's saved stdout 2024-03-15 01:41:37 -07:00
issue-97463-abi-param-passing
issue-107094
issue-109934-lto-debuginfo
jobserver-error Print a backtrace in const eval if interrupted 2024-03-17 11:55:20 -04:00
libs-through-symlinks
libtest-json Change default panic handler message format. 2023-07-29 11:42:50 +02:00
libtest-junit Add needs-unwind annotations to a couple of tests 2024-03-25 14:19:07 +00:00
libtest-padding libtest: Fix padding of benchmarks run as tests 2023-12-07 19:24:58 +01:00
libtest-thread-limit
link-arg
link-args-order
link-cfg
link-dedup
link-framework Ensure using otool that framework linking actually happened 2024-03-18 23:27:44 +01:00
link-path-order
linkage-attr-on-static
llvm-ident Support .comment section like GCC/Clang (!llvm.ident) 2023-07-21 22:01:50 +02:00
llvm-outputs
long-linker-command-lines fix long-linker-command-lines failure caused by rust.rpath=false 2024-03-10 09:29:13 +03:00
long-linker-command-lines-cmd-exe
longjmp-across-rust
ls-metadata Fix tests 2023-09-10 15:50:48 +00:00
lto-dylib-dep
lto-empty
lto-linkage-used-attr Update the minimum external LLVM to 17 2024-03-17 10:11:04 -07:00
lto-no-link-whole-rlib
lto-readonly-lib
lto-smoke
lto-smoke-c
macos-deployment-target Raise minimum supported macOS to 10.12 2023-09-23 19:14:25 -05:00
macos-fat-archive
manual-crate-name
manual-link
many-crates-but-no-match
metadata-dep-info tests/run-make: Move RUSTC_TEST_OP to tools.mk 2023-10-07 08:30:40 +02:00
metadata-flag-frobs-symbols
min-global-align Forbid implementing Freeze even if the trait is stabilized 2024-02-29 14:10:29 +00:00
mingw-export-call-convention
mismatching-target-triples
missing-crate-dependency
mixing-deps
mixing-formats
mixing-libs Verify that all crate sources are in sync 2023-07-19 14:47:05 +00:00
msvc-opt-minsize
multiple-emits
native-link-modifier-bundle
native-link-modifier-verbatim-linker
native-link-modifier-verbatim-rustc
native-link-modifier-whole-archive
no-alloc-shim
no-builtins-attribute Add the no-builtins attribute to functions when no_builtins is applied at the crate level. 2023-07-18 22:15:47 +08:00
no-builtins-lto Revert "Auto merge of #113923 - DianQK:restore-no-builtins-lto, r=pnkfelix" 2024-01-12 18:23:04 +08:00
no-cdylib-as-rdylib Verify that all crate sources are in sync 2023-07-19 14:47:05 +00:00
no-duplicate-libs
no-input-file
no-intermediate-extras
non-unicode-env Fix error message for env! when env var is not valid Unicode 2024-04-01 05:44:45 +01:00
obey-crate-type-flag
optimization-remarks-dir Add rustc option to output LLVM optimization remarks to YAML files 2023-07-02 13:41:36 +02:00
optimization-remarks-dir-pgo ignore-cross-compile on optimization-remarks-dir-pgo test 2023-08-18 09:41:08 +02:00
output-filename-conflicts-with-directory
output-filename-overwrites-input Fix tests 2023-09-10 15:50:48 +00:00
output-type-permutations
output-with-hyphens
override-aliased-flags
overwrite-input Bless run-make tests 2023-11-24 19:15:52 +01:00
panic-abort-eh_frame Run AbortUnwindingCalls after generator transform 2023-08-18 13:51:42 +01:00
panic-impl-transitive
pass-linker-flags Enable link-arg link kind inside of #[link] attribute 2023-11-30 08:26:13 -08:00
pass-linker-flags-flavor Enable link-arg link kind inside of #[link] attribute 2023-11-30 08:26:13 -08:00
pass-linker-flags-from-dep Enable link-arg link kind inside of #[link] attribute 2023-11-30 08:26:13 -08:00
pass-non-c-like-enum-to-c
pdb-alt-path Make pdb-alt-path test more unwind-friendly for i686-pc-windows-msvc 2024-03-14 11:03:15 +01:00
pdb-buildinfo-cl-cmd Add missing Debuginfo to PDB debug file on windows. 2023-09-08 00:28:40 +02:00
pgo-branch-weights ignore-cross-compile remaining tests that run binaries 2023-08-30 13:45:57 +02:00
pgo-gen ignore-cross-compile remaining tests that run binaries 2023-08-30 13:45:57 +02:00
pgo-gen-lto ignore-cross-compile remaining tests that run binaries 2023-08-30 13:45:57 +02:00
pgo-gen-no-imp-symbols
pgo-indirect-call-promotion ignore-cross-compile remaining tests that run binaries 2023-08-30 13:45:57 +02:00
pgo-use ignore-cross-compile remaining tests that run binaries 2023-08-30 13:45:57 +02:00
pointer-auth-link-with-c ignore-cross-compile remaining tests that run binaries 2023-08-30 13:45:57 +02:00
prefer-dylib
prefer-rlib
pretty-print-to-file
pretty-print-with-dep-file Fix missing dependency file with -Zunpretty 2023-08-04 20:13:40 +02:00
print-calling-conventions
print-cfg Stabilize PATH option for --print KIND=PATH 2023-09-07 15:07:30 +02:00
print-native-static-libs De-duplicate consecutive libs when printing native-static-libs 2023-07-12 20:04:30 +02:00
print-target-list
profile ignore-cross-compile remaining tests that run binaries 2023-08-30 13:45:57 +02:00
prune-link-args
raw-dylib-alt-calling-convention tests/run-make: Use RUSTC_TEST_OP in more places 2023-10-07 08:30:40 +02:00
raw-dylib-c tests: Normalize \r\n to \n in some run-make tests 2024-01-06 18:46:35 +03:00
raw-dylib-cross-compilation
raw-dylib-custom-dlltool
raw-dylib-import-name-type tests/run-make: Use RUSTC_TEST_OP in more places 2023-10-07 08:30:40 +02:00
raw-dylib-inline-cross-dylib tests: Normalize \r\n to \n in some run-make tests 2024-01-06 18:46:35 +03:00
raw-dylib-link-ordinal tests: Normalize \r\n to \n in some run-make tests 2024-01-06 18:46:35 +03:00
raw-dylib-stdcall-ordinal tests/run-make: Use RUSTC_TEST_OP in more places 2023-10-07 08:30:40 +02:00
redundant-libs
relocation-model
relro-levels
remap-path-prefix Replace RemapFileNameExt::for_codegen with explicit calls 2024-03-28 18:47:26 +01:00
remap-path-prefix-dwarf Adjust tests for MacOS having different -Csplit-debuginfo default 2023-10-17 10:11:31 +02:00
repr128-dwarf
reproducible-build
reproducible-build-2
resolve-rename
return-non-c-like-enum
return-non-c-like-enum-from-c
rlib-chain
rlib-format-packed-bundled-libs
rlib-format-packed-bundled-libs-2
rlib-format-packed-bundled-libs-3 stabilize combining +bundle and +whole-archive link modifiers 2023-08-15 15:51:18 -05:00
rmeta-preferred Rewrite rmeta-rpass test to work with the new check for all crate sources being in sync 2023-07-19 14:47:06 +00:00
rust-lld add end-to-end test 2023-06-30 21:13:24 +00:00
rust-lld-custom-target Update data layouts in custom target tests for LLVM 18 2024-01-31 15:15:59 +01:00
rustc-macro-dep-files Improve print_tts by changing tokenstream::Spacing. 2023-12-11 09:19:09 +11:00
rustdoc-determinism
rustdoc-error-lines
rustdoc-io-error
rustdoc-map-file Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
rustdoc-output-path
rustdoc-scrape-examples-invalid-expr
rustdoc-scrape-examples-macros
rustdoc-scrape-examples-multiple
rustdoc-scrape-examples-ordering
rustdoc-scrape-examples-remap
rustdoc-scrape-examples-test
rustdoc-scrape-examples-whitespace
rustdoc-shared-flags
rustdoc-target-spec-json-path Update data layouts in custom target tests for LLVM 18 2024-01-31 15:15:59 +01:00
rustdoc-test-args Rework rmake support library to have a weakly-typed API with helper methods 2024-03-24 15:37:24 +00:00
rustdoc-themes rustdoc: merge theme css into rustdoc.css 2023-09-15 07:40:17 -07:00
rustdoc-verify-output-files
rustdoc-with-out-dir-option
rustdoc-with-output-option
rustdoc-with-short-out-dir-option
sanitizer-cdylib-link Enable address sanitizer for MSVC targets using INFERASANLIBS linker flag 2024-01-03 10:00:15 -08:00
sanitizer-dylib-link Enable address sanitizer for MSVC targets using INFERASANLIBS linker flag 2024-01-03 10:00:15 -08:00
sanitizer-staticlib-link Enable address sanitizer for MSVC targets using INFERASANLIBS linker flag 2024-01-03 10:00:15 -08:00
separate-link
separate-link-fail
sepcomp-cci-copies
sepcomp-inlining
sepcomp-separate
share-generics-dylib
short-ice Fix dump-ice-to-disk and short-ice tests when librustc-driver is dynamically linked 2023-07-20 14:31:56 +02:00
silly-file-names tests/run-make: Move RUSTC_TEST_OP to tools.mk 2023-10-07 08:30:40 +02:00
simd-ffi
simple-dylib
simple-rlib
split-debuginfo Simplify trim-paths feature by merging all debuginfo options together 2024-03-28 18:47:26 +01:00
stable-symbol-names
static-dylib-by-default
static-extern-type
static-pie
static-unwinding
staticlib-blank-lib
staticlib-dylib-linkage
std-core-cycle
stdin-non-utf8
suspicious-library
symbol-mangling-hashed MCP #705: Provide the option -Csymbol-mangling-version=hashed -Z unstable-options to shorten symbol names by replacing them with a digest. 2024-01-26 12:39:03 +08:00
symbol-visibility
symbols-include-type-name
symlinked-extern
symlinked-libraries
symlinked-rlib
sysroot-crates-are-unstable Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
target-cpu-native
target-specs Update data layouts in custom target tests for LLVM 18 2024-01-31 15:15:59 +01:00
target-without-atomic-cas
test-benches
test-harness
thumb-none-cortex-m
thumb-none-qemu
track-path-dep-info
track-pgo-dep-info
translation
type-mismatch-same-crate-name
unknown-mod-stdin Bless run-make tests 2023-11-24 19:15:52 +01:00
unstable-flag-required
use-suggestions-rust-2018
used
used-cdylib-macos
valid-print-requests Sort PRINT_KINDS. 2023-11-30 17:28:29 +11:00
volatile-intrinsics
wasm-abi Convert wasmtime check into a compiletest needs directive 2024-03-27 22:15:49 +00:00
wasm-custom-section Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
wasm-custom-sections-opt Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
wasm-exceptions-nostd rename 'try' intrinsic to 'catch_unwind' 2024-02-26 11:10:18 +01:00
wasm-export-all-symbols Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
wasm-import-module Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
wasm-override-linker add test for wasm linker override=clang 2023-10-09 11:42:23 +09:00
wasm-panic-small Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
wasm-spurious-import Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
wasm-stringify-ints-small Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
wasm-symbols-different-module Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
wasm-symbols-not-exported Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
wasm-symbols-not-imported Use compiletest directives for properly only running wasm32-wasip1 tests on that target 2024-03-27 21:55:09 +00:00
weird-output-filenames
windows-binary-no-external-deps
windows-safeseh Mark .rmeta files as /SAFESEH on x86 Windows. 2023-10-24 13:42:28 -07:00
windows-spawn
windows-subsystem
x86_64-fortanix-unknown-sgx-lvi Rollup merge of #121685 - fortanix:raoul/shellcheck_on_lvi_test_script, r=Mark-Simulacrum 2024-03-10 10:58:16 +01:00
git_clone_sha1.sh
tools.mk Add synchronization library to run-make flags 2024-02-25 22:28:30 -03:00