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