Skip to content

Commit 939b591

Browse files
jschwedingxiangfei2009
authored andcommitted
uplift windows gnullvm import libraries
Same changes as rust-lang#8141, but for gnullvm. gnullvm does not seem to be tested in CI, so tests were not adjusted.
1 parent 1f7d855 commit 939b591

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cargo/core/compiler/build_context/target_info.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,10 @@ impl TargetInfo {
389389
crate_type: Some(crate_type.clone()),
390390
should_replace_hyphens: true,
391391
});
392-
} else if target_triple.ends_with("windows-gnu") && suffix == ".dll" {
392+
} else if suffix == ".dll"
393+
&& (target_triple.ends_with("windows-gnu")
394+
|| target_triple.ends_with("windows-gnullvm"))
395+
{
393396
// See https://cygwin.com/cygwin-ug-net/dll.html for more
394397
// information about GNU import libraries.
395398
// LD can link DLL directly, but LLD requires the import library.

0 commit comments

Comments
 (0)