mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
fix CI
This commit is contained in:
parent
58632d0d73
commit
ce8ee94624
1 changed files with 21 additions and 1 deletions
|
|
@ -176,7 +176,27 @@ function(add_math_backend name compile_defs)
|
||||||
elseif(name STREQUAL "avx2")
|
elseif(name STREQUAL "avx2")
|
||||||
target_compile_options(math_${name} PRIVATE -mavx2 -mfma)
|
target_compile_options(math_${name} PRIVATE -mavx2 -mfma)
|
||||||
elseif(name STREQUAL "neon")
|
elseif(name STREQUAL "neon")
|
||||||
target_compile_options(math_${name} PRIVATE -march=armv8-a)
|
if(APPLE)
|
||||||
|
set_target_properties(math_${name} PROPERTIES OSX_ARCHITECTURES "arm64")
|
||||||
|
else()
|
||||||
|
target_compile_options(math_${name} PRIVATE -march=armv8-a)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
# ARM-only backend
|
||||||
|
if(name STREQUAL "neon")
|
||||||
|
set_target_properties(math_${name} PROPERTIES
|
||||||
|
OSX_ARCHITECTURES "arm64"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# x86-only backends
|
||||||
|
if(name MATCHES "sse2|sse41|avx|avx2")
|
||||||
|
set_target_properties(math_${name} PROPERTIES
|
||||||
|
OSX_ARCHITECTURES "x86_64"
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue