浏览代码

add arm64 for macOS Apple Silicon architecture

hh-wu 3 年之前
父节点
当前提交
e21d17fa29
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/kotlin/io/xmake/shared/XMakeConfiguration.kt

+ 1 - 1
src/main/kotlin/io/xmake/shared/XMakeConfiguration.kt

@@ -246,7 +246,7 @@ class XMakeConfiguration(// the project
 
         // get architectures by platform
         fun getArchitecturesByPlatform(platform: String) = when (platform) {
-            "macosx", "linux", "mingw" -> arrayOf("x86_64", "i386")
+            "macosx", "linux", "mingw" -> arrayOf("x86_64", "i386", "arm64")
             "windows" -> arrayOf("x86", "x64")
             "iphoneos" -> arrayOf("arm64", "armv7", "armv7s", "x86_64", "i386")
             "watchos" -> arrayOf("armv7s", "i386")