diff options
| author | Yong He <yonghe@outlook.com> | 2022-09-28 20:03:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-28 20:03:18 -0700 |
| commit | b01d8db282f7971ade728e47a943585eae42f419 (patch) | |
| tree | 166a01ba9eb96841ee058c2470f9aa26f9c331cd /premake5.lua | |
| parent | 3dce6e08dd74c6dfbfb8f553eaf18200a6bf6f2a (diff) | |
Fix build script for macos aarch64. (#2420)
* Fix build script for macos aarch64.
* fix1
* Fix2.
* update vs files
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/premake5.lua b/premake5.lua index c8c1fbf6f..264aebc04 100644 --- a/premake5.lua +++ b/premake5.lua @@ -272,23 +272,7 @@ newoption { end function getPlatforms(targetInfo) - if _ACTION == "xcode4" then - local arch = targetInfo.arch - local valueMap = - { - x86_64 = "x64", - arm = "aarch64", - } - - local value = valueMap[arch:lower()] - if value == nil then - return { arch } - else - return { value } - end - else - return { "x86", "x64", "aarch64" } - end + return { "x86", "x64", "aarch64" } end workspace "slang" @@ -333,8 +317,10 @@ newoption { architecture "x64" filter { "platforms:x86" } architecture "x86" - filter { "platforms:aarch64"} - architecture "ARM" + filter { "platforms:aarch64" } + architecture "ARM64" + buildoptions { "-arch arm64" } + linkoptions { "-arch arm64" } filter { "toolset:clang or gcc*" } -- Makes all symbols hidden by default unless explicitly 'exported' |
