Skip to content

Commit 6d2e060

Browse files
committed
add test ensuring -Zgcc-ld=$linker and -Clinker-flavor=gcc:$linker match
currently only "lld" is usable in this context
1 parent d337f07 commit 6d2e060

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// check-fail
2+
// compile-flags: -Zgcc-ld=lld -Clinker-flavor=gcc:not_lld -Zunstable-options
3+
4+
// Test ensuring that until the unstable flag is removed (if ever), if both the linker-flavor and
5+
// `gcc-ld` flags are used, they ask for the same linker.
6+
7+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: `-Zgcc-ld=lld` and `-Clinker-flavor` differ in their linker choice. The latter should be `-Clinker-flavor=gcc:lld`
2+

0 commit comments

Comments
 (0)