mirror of
https://github.com/alterware/master-server.git
synced 2025-07-03 01:31:48 +00:00
build(premake): do not hardcode Premake5.lua to use clang (#53)
This commit is contained in:
12
premake5.lua
12
premake5.lua
@ -71,16 +71,18 @@ filter { "system:linux", "system:macosx" }
|
||||
filter {}
|
||||
|
||||
if os.istarget("linux") then
|
||||
filter { "platforms:arm64" }
|
||||
filter { "toolset:clang*", "platforms:arm64" }
|
||||
buildoptions "--target=arm64-linux-gnu"
|
||||
linkoptions "--target=arm64-linux-gnu"
|
||||
filter {}
|
||||
|
||||
buildoptions "-stdlib=libc++"
|
||||
linkoptions "-stdlib=libc++"
|
||||
filter { "toolset:clang*" }
|
||||
buildoptions "-stdlib=libc++"
|
||||
linkoptions "-stdlib=libc++"
|
||||
|
||||
-- always try to use lld. LD or Gold will not work
|
||||
linkoptions "-fuse-ld=lld"
|
||||
-- always try to use lld. LD or Gold will not work
|
||||
linkoptions "-fuse-ld=lld"
|
||||
filter {}
|
||||
end
|
||||
|
||||
filter { "system:macosx", "platforms:arm64" }
|
||||
|
Reference in New Issue
Block a user