Skip to content

Commit

Permalink
Try filter out libcompiler_builtins for Windows gnu targets
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 1, 2022
1 parent 718fa60 commit 7863321
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/zig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ impl Zig {
// Replace libgcc_s with libunwind
return Some("-lunwind".to_string());
}
if is_arm && arg.ends_with(".rlib") && arg.contains("libcompiler_builtins-") {
if (is_arm || is_windows_gnu)
&& arg.ends_with(".rlib")
&& arg.contains("libcompiler_builtins-")
{
// compiler-builtins is duplicated with zig's compiler-rt
return None;
}
Expand Down

0 comments on commit 7863321

Please sign in to comment.