We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-C linker-flavor=gcc:*
1 parent a595ce7 commit f04c944Copy full SHA for f04c944
src/test/run-make/gcc-linker-flavor/Makefile
@@ -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"
src/test/run-make/gcc-linker-flavor/empty.rs
@@ -0,0 +1,4 @@
+// Test ensuring that the enriched `gcc` linker flavor requesting an arbitrary linker (`-C
+// linker-flavor=gcc:$linker`) is passed to `cc` as `-fuse-ld`
+fn main() {}
0 commit comments