mirror of
https://github.com/diamante0018/master-tool.git
synced 2025-07-05 10:41:48 +00:00
build: linux attempt arm64 without mold
This commit is contained in:
21
premake5.lua
21
premake5.lua
@ -74,17 +74,24 @@ editandcontinue "Off"
|
||||
warnings "Extra"
|
||||
characterset "ASCII"
|
||||
|
||||
if os.istarget("linux") or os.istarget("darwin") then
|
||||
filter { "system:linux", "system:macosx" }
|
||||
buildoptions "-pthread"
|
||||
linkoptions "-pthread"
|
||||
filter {}
|
||||
|
||||
if os.istarget("linux") then
|
||||
filter { "platforms:arm64" }
|
||||
buildoptions "--target=arm64-linux-gnu"
|
||||
linkoptions "--target=arm64-linux-gnu"
|
||||
filter {}
|
||||
|
||||
linkoptions "-fuse-ld=lld"
|
||||
end
|
||||
|
||||
if os.istarget("darwin") then
|
||||
filter "platforms:arm64"
|
||||
buildoptions "-arch arm64"
|
||||
linkoptions "-arch arm64"
|
||||
filter {}
|
||||
end
|
||||
filter { "system:macosx", "platforms:arm64" }
|
||||
buildoptions "-arch arm64"
|
||||
linkoptions "-arch arm64"
|
||||
filter {}
|
||||
|
||||
if os.getenv("CI") then
|
||||
defines "CI"
|
||||
|
Reference in New Issue
Block a user