Skip to content

Commit

Permalink
uplift windows gnullvm import libraries
Browse files Browse the repository at this point in the history
Same changes as rust-lang#8141, but for gnullvm.
gnullvm does not seem to be tested in CI, so tests were not adjusted.
  • Loading branch information
jschwe committed Aug 25, 2024
1 parent 3d2cf56 commit 7140dd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cargo/core/compiler/build_context/target_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,10 @@ impl TargetInfo {
crate_type: Some(crate_type.clone()),
should_replace_hyphens: true,
});
} else if target_triple.ends_with("windows-gnu") && suffix == ".dll" {
} else if suffix == ".dll"
&& (target_triple.ends_with("windows-gnu")
|| target_triple.ends_with("windows-gnullvm") )
{
// See https://cygwin.com/cygwin-ug-net/dll.html for more
// information about GNU import libraries.
// LD can link DLL directly, but LLD requires the import library.
Expand Down

0 comments on commit 7140dd9

Please sign in to comment.