File tree Expand file tree Collapse file tree 2 files changed +11
-15
lines changed
tests/ui/link-native-libs/issue-70093 Expand file tree Collapse file tree 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
110// On Windows MSVC, default-linker-libraries=yes doesn't work because
211// rustc drives the linker directly instead of going through another compiler.
312// Therefore rustc would need to implement default-linker-libraries itself but doesn't.
413// 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
1016
1117#[ link( name = "some-random-non-existent-library" , kind = "static" ) ]
1218extern "C" { }
You can’t perform that action at this time.
0 commit comments