Windows: Enable issue 70093 link tests
This commit is contained in:
parent
c1566141b6
commit
7d5ff8b8bd
4 changed files with 20 additions and 13 deletions
|
@ -2710,8 +2710,6 @@ ui/limits/issue-75158-64.rs
|
|||
ui/link-native-libs/issue-109144.rs
|
||||
ui/link-native-libs/issue-43925.rs
|
||||
ui/link-native-libs/issue-43926.rs
|
||||
ui/link-native-libs/issue-70093/issue-70093-link-directives.rs
|
||||
ui/link-native-libs/issue-70093/issue-70093.rs
|
||||
ui/linkage-attr/auxiliary/issue-12133-dylib.rs
|
||||
ui/linkage-attr/auxiliary/issue-12133-dylib2.rs
|
||||
ui/linkage-attr/auxiliary/issue-12133-rlib.rs
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
//@ run-pass
|
||||
//@ compile-flags: -Zlink-native-libraries=no -Cdefault-linker-libraries=yes
|
||||
//@ ignore-windows - this will probably only work on unixish systems
|
||||
//@ ignore-fuchsia - missing __libc_start_main for some reason (#84733)
|
||||
//@ ignore-cross-compile - default-linker-libraries=yes doesn't play well with cross compiling
|
||||
|
||||
#[link(name = "some-random-non-existent-library", kind = "static")]
|
||||
extern "C" {}
|
||||
|
||||
fn main() {}
|
|
@ -1,6 +1,5 @@
|
|||
//@ run-pass
|
||||
//@ compile-flags: -Zlink-directives=no
|
||||
//@ ignore-windows - this will probably only work on unixish systems
|
||||
//@ ignore-fuchsia - missing __libc_start_main for some reason (#84733)
|
||||
//@ ignore-cross-compile - default-linker-libraries=yes doesn't play well with cross compiling
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
//@ run-pass
|
||||
//@ compile-flags: -Zlink-native-libraries=no -Cdefault-linker-libraries=yes
|
||||
//@ ignore-fuchsia - missing __libc_start_main for some reason (#84733)
|
||||
//@ ignore-cross-compile - default-linker-libraries=yes doesn't play well with cross compiling
|
||||
|
||||
//@ revisions: other
|
||||
//@[other] ignore-msvc
|
||||
|
||||
//@ revisions: msvc
|
||||
// On Windows MSVC, default-linker-libraries=yes doesn't work because
|
||||
// rustc drives the linker directly instead of going through another compiler.
|
||||
// Therefore rustc would need to implement default-linker-libraries itself but doesn't.
|
||||
// So instead we use -Clink-arg to directly set the required msvcrt.lib as a link arg.
|
||||
//@[msvc] compile-flags: -Clink-arg=msvcrt.lib
|
||||
//@[msvc] only-msvc
|
||||
|
||||
#[link(name = "some-random-non-existent-library", kind = "static")]
|
||||
extern "C" {}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue