build(linux): arm64 - remove mold linker (#137)

This commit is contained in:
Edo 2023-06-29 22:11:49 +02:00 committed by GitHub
parent 401ad99dc3
commit 16afa9398c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 8 deletions

View File

@ -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

View File

@ -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"