File tree 2 files changed +11
-15
lines changed
tests/ui/link-native-libs/issue-70093
2 files changed +11
-15
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ //@ run-pass
2
+ //@ compile-flags: -Zlink-native-libraries=no -Cdefault-linker-libraries=yes
3
+ //@ ignore-fuchsia - missing __libc_start_main for some reason (#84733)
4
+ //@ ignore-cross-compile - default-linker-libraries=yes doesn't play well with cross compiling
5
+
6
+ //@ revisions: other
7
+ //@[other] ignore-msvc
8
+
9
+ //@ revisions: msvc
1
10
// On Windows MSVC, default-linker-libraries=yes doesn't work because
2
11
// rustc drives the linker directly instead of going through another compiler.
3
12
// Therefore rustc would need to implement default-linker-libraries itself but doesn't.
4
13
// So instead we use -Clink-arg to directly set the required msvcrt.lib as a link arg.
5
-
6
- //@ run-pass
7
- //@ compile-flags: -Zlink-native-libraries=no -Clink-arg=msvcrt.lib
8
- //@ only-msvc
9
- //@ ignore-cross-compile
14
+ //@[msvc] compile-flags: -Clink-arg=msvcrt.lib
15
+ //@[msvc] only-msvc
10
16
11
17
#[ link( name = "some-random-non-existent-library" , kind = "static" ) ]
12
18
extern "C" { }
You can’t perform that action at this time.
0 commit comments