Skip to content

Commit

Permalink
Set target to apple-darwin for macos to avoid cross-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Jul 31, 2022
1 parent ad74b1f commit 2262218
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ impl Test {
let target = if self.msvc {
"x86_64-pc-windows-msvc"
} else {
"x86_64-unknown-linux-gnu"
if cfg!(target_os = "macos") {
"x86_64-apple-darwin"
} else {
"x86_64-unknown-linux-gnu"
}
};

cfg.target(target)
Expand Down

0 comments on commit 2262218

Please sign in to comment.