mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-19 20:30:58 +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")
|
||||
target_compile_options(math_${name} PRIVATE -mavx2 -mfma)
|
||||
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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue