mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Update tests and comments for testing windows-gnu.
This commit is contained in:
parent
68c22a16bc
commit
b19d6ac2a7
@ -257,11 +257,11 @@ impl TargetInfo {
|
||||
flavor: FileFlavor::Normal,
|
||||
should_replace_hyphens: false,
|
||||
})
|
||||
}
|
||||
else if target_triple.ends_with("windows-gnu")
|
||||
} else if target_triple.ends_with("windows-gnu")
|
||||
&& crate_type.ends_with("dylib")
|
||||
&& suffix == ".dll"
|
||||
{
|
||||
// LD can link DLL directly, but LLD requires the import library.
|
||||
ret.push(FileType {
|
||||
suffix: ".dll.a".to_string(),
|
||||
prefix: "lib".to_string(),
|
||||
|
@ -3810,8 +3810,7 @@ fn cdylib_final_outputs() {
|
||||
if cfg!(target_env = "msvc") {
|
||||
vec!["foo_bar.dll.lib", "foo_bar.dll"]
|
||||
} else {
|
||||
// FIXME https://github.com/rust-lang/cargo/pull/6875
|
||||
vec!["foo_bar.dll"]
|
||||
vec!["foo_bar.dll", "libfoo_bar.dll.a"]
|
||||
}
|
||||
} else if cfg!(target_os = "macos") {
|
||||
vec!["libfoo_bar.dylib"]
|
||||
|
@ -1663,7 +1663,6 @@ fn build_script_with_dynamic_native_dependency() {
|
||||
let src = root.join(&file);
|
||||
let dst = out_dir.join(&file);
|
||||
fs::copy(src, dst).unwrap();
|
||||
// FIXME https://github.com/rust-lang/cargo/pull/6875
|
||||
if cfg!(target_env = "msvc") {
|
||||
fs::copy(root.join("builder.dll.lib"),
|
||||
out_dir.join("builder.dll.lib")).unwrap();
|
||||
|
@ -92,8 +92,7 @@ fn dynamic_library_with_debug() {
|
||||
&["libfoo.so"],
|
||||
&["libfoo.dylib"],
|
||||
&["foo.dll", "foo.dll.lib"],
|
||||
// FIXME https://github.com/rust-lang/cargo/pull/6875
|
||||
&["foo.dll"],
|
||||
&["foo.dll", "libfoo.dll.a"],
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,6 @@ fn plugin_with_dynamic_native_dependency() {
|
||||
let src = root.join(&file);
|
||||
let dst = out_dir.join(&file);
|
||||
fs::copy(src, dst).unwrap();
|
||||
// FIXME https://github.com/rust-lang/cargo/pull/6875
|
||||
if cfg!(target_env = "msvc") {
|
||||
fs::copy(root.join("builder.dll.lib"),
|
||||
out_dir.join("builder.dll.lib")).unwrap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user