Skip to content

Commit 2262218

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/support/mod.rs

+5-1
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)