Skip to content

Commit

Permalink
Remove --target argument from cc-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 13, 2023
1 parent ea922af commit 6c10ea6
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 46 deletions.
7 changes: 5 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/zig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ impl Zig {
if arg == "-lgcc_s" {
// Replace libgcc_s with libunwind
return Some("-lunwind".to_string());
} else if arg.starts_with("--target=") {
// We have already passed target via `-target`
return None;
}
if (is_arm || is_windows_gnu)
&& arg.ends_with(".rlib")
Expand Down
Loading

0 comments on commit 6c10ea6

Please sign in to comment.