File tree 4 files changed +20
-13
lines changed
tests/ui/link-native-libs/issue-70093
4 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -2710,8 +2710,6 @@ ui/limits/issue-75158-64.rs
2710
2710
ui/link-native-libs/issue-109144.rs
2711
2711
ui/link-native-libs/issue-43925.rs
2712
2712
ui/link-native-libs/issue-43926.rs
2713
- ui/link-native-libs/issue-70093/issue-70093-link-directives.rs
2714
- ui/link-native-libs/issue-70093/issue-70093.rs
2715
2713
ui/linkage-attr/auxiliary/issue-12133-dylib.rs
2716
2714
ui/linkage-attr/auxiliary/issue-12133-dylib2.rs
2717
2715
ui/linkage-attr/auxiliary/issue-12133-rlib.rs
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
//@ run-pass
2
2
//@ compile-flags: -Zlink-directives=no
3
- //@ ignore-windows - this will probably only work on unixish systems
4
3
//@ ignore-fuchsia - missing __libc_start_main for some reason (#84733)
5
4
//@ ignore-cross-compile - default-linker-libraries=yes doesn't play well with cross compiling
6
5
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
10
+ // On Windows MSVC, default-linker-libraries=yes doesn't work because
11
+ // rustc drives the linker directly instead of going through another compiler.
12
+ // Therefore rustc would need to implement default-linker-libraries itself but doesn't.
13
+ // So instead we use -Clink-arg to directly set the required msvcrt.lib as a link arg.
14
+ //@[msvc] compile-flags: -Clink-arg=msvcrt.lib
15
+ //@[msvc] only-msvc
16
+
17
+ #[ link( name = "some-random-non-existent-library" , kind = "static" ) ]
18
+ extern "C" { }
19
+
20
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments