summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua24
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'