mirror of
https://github.com/diamante0018/master-tool.git
synced 2025-04-19 19:32:53 +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
|
- debug
|
||||||
- release
|
- release
|
||||||
arch:
|
arch:
|
||||||
|
- x64
|
||||||
- arm64
|
- arm64
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files
|
- name: Check out files
|
||||||
|
12
deps/premake/libtomcrypt.lua
vendored
12
deps/premake/libtomcrypt.lua
vendored
@ -54,15 +54,13 @@ function libtomcrypt.project()
|
|||||||
"_USRDLL",
|
"_USRDLL",
|
||||||
}
|
}
|
||||||
|
|
||||||
if os.istarget("darwin") then
|
filter { "system:macosx", "platforms:arm64" }
|
||||||
filter "platforms:x64"
|
|
||||||
buildoptions "-march=native"
|
|
||||||
filter {}
|
|
||||||
|
|
||||||
filter "platforms:arm64"
|
|
||||||
buildoptions "-mcpu=apple-m1"
|
buildoptions "-mcpu=apple-m1"
|
||||||
filter {}
|
filter {}
|
||||||
end
|
|
||||||
|
filter { "system:macosx", "platforms:x64" }
|
||||||
|
buildoptions "-mcpu=x86-64"
|
||||||
|
filter {}
|
||||||
|
|
||||||
warnings "Off"
|
warnings "Off"
|
||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
|
@ -86,6 +86,11 @@ if os.istarget("linux") then
|
|||||||
filter {}
|
filter {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
filter { "system:macosx", "platforms:x64" }
|
||||||
|
buildoptions "-arch x86_64"
|
||||||
|
linkoptions "-arch x86_64"
|
||||||
|
filter {}
|
||||||
|
|
||||||
filter { "system:macosx", "platforms:arm64" }
|
filter { "system:macosx", "platforms:arm64" }
|
||||||
buildoptions "-arch arm64"
|
buildoptions "-arch arm64"
|
||||||
linkoptions "-arch arm64"
|
linkoptions "-arch arm64"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user