From 226221884f7d2c1f32334b51a9e7143ccbdbfeae Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 1 Aug 2022 03:46:18 +0900 Subject: [PATCH] Set target to apple-darwin for macos to avoid cross-compile --- tests/support/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/support/mod.rs b/tests/support/mod.rs index f3c04405a..3ec191113 100644 --- a/tests/support/mod.rs +++ b/tests/support/mod.rs @@ -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)