Skip to content

Commit aebc133

Browse files
committed
add run-make test for -C linker-flavor=gcc:*
ensures that the wrapped linker is indeed passed straight to cc
1 parent 6d2e060 commit aebc133

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# only-linux
2+
3+
# Ensure that the enriched `gcc` linker-flavor passes the requested linker to `cc`
4+
5+
-include ../../run-make-fulldeps/tools.mk
6+
RUSTC_FLAGS = -C linker-flavor=gcc:my_wrapped_linker -Z unstable-options --print link-args
7+
8+
all:
9+
$(RUSTC) $(RUSTC_FLAGS) empty.rs | $(CGREP) "fuse-ld=my_wrapped_linker"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Test ensuring that the enriched `gcc` linker flavor requesting an arbitrary linker (`-C
2+
// linker-flavor=gcc:$linker`) is passed to `cc` as `-fuse-ld`
3+
4+
fn main() {}

0 commit comments

Comments
 (0)