Skip to content

Commit e2afb7b

Browse files
committed
Set target to apple-darwin for macos to avoid cross-compile
1 parent ce94093 commit e2afb7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/support/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ impl Test {
7676
let target = if self.msvc {
7777
"x86_64-pc-windows-msvc"
7878
} else {
79-
"x86_64-unknown-linux-gnu"
79+
if cfg!(target_os = "macos") {
80+
"x86_64-apple-darwin"
81+
} else {
82+
"x86_64-unknown-linux-gnu"
83+
}
8084
};
8185

8286
cfg.target(target)

0 commit comments

Comments
 (0)