build: more arm64 tests on macos (#39)

This commit is contained in:
2023-06-25 15:18:37 +02:00
committed by GitHub
parent 02335285e6
commit d8f265f284
3 changed files with 15 additions and 1 deletions

View File

@ -39,7 +39,7 @@ targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"
configurations {"Debug", "Release"}
if os.istarget("darwin") then
platforms {"x64"}
platforms {"x64", "arm64"}
else
platforms {"x86", "x64", "arm64"}
end
@ -79,6 +79,13 @@ if os.istarget("linux") or os.istarget("darwin") then
linkoptions "-pthread"
end
if os.istarget("darwin") then
filter "platforms:arm64"
buildoptions "-arch arm64"
linkoptions "-arch arm64"
filter {}
end
if os.getenv("CI") then
defines "CI"
end