mirror of
https://github.com/alterware/master-server.git
synced 2025-07-03 01:31:48 +00:00
feat: arm64 Linux Docker image
This commit is contained in:
17
premake5.lua
17
premake5.lua
@ -41,9 +41,11 @@ configurations {"debug", "release"}
|
||||
language "C++"
|
||||
cppdialect "C++20"
|
||||
|
||||
if os.istarget("darwin") then
|
||||
platforms {"x64", "arm64"}
|
||||
else
|
||||
if os.istarget("linux") then
|
||||
platforms {"x86", "amd64", "arm64"}
|
||||
elseif os.istarget("macosx") then
|
||||
platforms {"amd64", "arm64"}
|
||||
else
|
||||
platforms {"x86", "x64", "arm64"}
|
||||
end
|
||||
|
||||
@ -55,6 +57,10 @@ filter "platforms:x64"
|
||||
architecture "x86_64"
|
||||
filter {}
|
||||
|
||||
filter "platforms:amd64"
|
||||
architecture "x86_64"
|
||||
filter {}
|
||||
|
||||
filter "platforms:arm64"
|
||||
architecture "ARM64"
|
||||
filter {}
|
||||
@ -77,15 +83,12 @@ if os.istarget("linux") then
|
||||
filter {}
|
||||
|
||||
filter { "toolset:clang*" }
|
||||
buildoptions "-stdlib=libc++"
|
||||
linkoptions "-stdlib=libc++"
|
||||
|
||||
-- always try to use lld. LD or Gold will not work
|
||||
linkoptions "-fuse-ld=lld"
|
||||
filter {}
|
||||
end
|
||||
|
||||
filter { "system:macosx", "platforms:x64" }
|
||||
filter { "system:macosx", "platforms:amd64" }
|
||||
buildoptions "-arch x86_64"
|
||||
linkoptions "-arch x86_64"
|
||||
filter {}
|
||||
|
Reference in New Issue
Block a user