build(linux): arm64 - remove mold linker (#137)
This commit is contained in:
parent
a385156f8a
commit
280b4a4670
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -116,6 +116,7 @@ jobs:
|
||||
- release
|
||||
arch:
|
||||
- x64
|
||||
- arm64
|
||||
steps:
|
||||
- name: Check out files
|
||||
uses: actions/checkout@v3.5.3
|
||||
@ -124,8 +125,11 @@ jobs:
|
||||
fetch-depth: 0
|
||||
lfs: false
|
||||
|
||||
- name: Add mold to PATH
|
||||
uses: rui314/setup-mold@staging
|
||||
- name: Install dependencies (arm64)
|
||||
if: matrix.arch == 'arm64'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install crossbuild-essential-arm64 -y
|
||||
|
||||
- name: Add premake5 to PATH
|
||||
uses: abel0b/setup-premake@v2.2
|
||||
|
19
premake5.lua
19
premake5.lua
@ -120,22 +120,29 @@ workspace "gsc-tool"
|
||||
staticruntime "On"
|
||||
warnings "Extra"
|
||||
|
||||
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"
|
||||
filter { "system:macosx", "platforms:arm64" }
|
||||
buildoptions "-arch arm64"
|
||||
linkoptions "-arch arm64"
|
||||
filter {}
|
||||
end
|
||||
filter {}
|
||||
|
||||
filter "configurations:release"
|
||||
optimize "Full"
|
||||
defines "NDEBUG"
|
||||
flags { "FatalCompileWarnings" }
|
||||
flags "FatalCompileWarnings"
|
||||
filter {}
|
||||
|
||||
filter "configurations:debug"
|
||||
|
Loading…
Reference in New Issue
Block a user