mirror of
https://github.com/diamante0018/master-tool.git
synced 2025-03-23 00:36:56 +00:00
build: add amd64 macos (#80)
This commit is contained in:
parent
57392b6b87
commit
8a798c8b4e
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -129,6 +129,7 @@ jobs:
|
||||
- debug
|
||||
- release
|
||||
arch:
|
||||
- x64
|
||||
- arm64
|
||||
steps:
|
||||
- name: Check out files
|
||||
|
14
deps/premake/libtomcrypt.lua
vendored
14
deps/premake/libtomcrypt.lua
vendored
@ -54,15 +54,13 @@ function libtomcrypt.project()
|
||||
"_USRDLL",
|
||||
}
|
||||
|
||||
if os.istarget("darwin") then
|
||||
filter "platforms:x64"
|
||||
buildoptions "-march=native"
|
||||
filter {}
|
||||
filter { "system:macosx", "platforms:arm64" }
|
||||
buildoptions "-mcpu=apple-m1"
|
||||
filter {}
|
||||
|
||||
filter "platforms:arm64"
|
||||
buildoptions "-mcpu=apple-m1"
|
||||
filter {}
|
||||
end
|
||||
filter { "system:macosx", "platforms:x64" }
|
||||
buildoptions "-mcpu=x86-64"
|
||||
filter {}
|
||||
|
||||
warnings "Off"
|
||||
kind "StaticLib"
|
||||
|
@ -86,6 +86,11 @@ if os.istarget("linux") then
|
||||
filter {}
|
||||
end
|
||||
|
||||
filter { "system:macosx", "platforms:x64" }
|
||||
buildoptions "-arch x86_64"
|
||||
linkoptions "-arch x86_64"
|
||||
filter {}
|
||||
|
||||
filter { "system:macosx", "platforms:arm64" }
|
||||
buildoptions "-arch arm64"
|
||||
linkoptions "-arch arm64"
|
||||
|
Loading…
x
Reference in New Issue
Block a user