Skip to content

Commit 6a7631b

Browse files
committed
fix macos compile native
1 parent c5dc69c commit 6a7631b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ val nativeArch = project.findProperty("NATIVE_ARCH") as String? ?: when {
6464
}
6565

6666
val archFlag = when (nativeArch) {
67-
"linux-x64", "windows-x64", "macos-x64" -> "-march=x86-64-v2"
67+
"linux-x64", "windows-x64" -> "-march=x86-64-v2"
68+
"macos-x64" -> "-march=x86-64"
6869
"linux-aarch64", "windows-aarch64", "macos-aarch64" -> "-march=armv8-a"
6970
else -> "-march=native"
7071
}

0 commit comments

Comments
 (0)