diff options
author | Brad King <brad.king@kitware.com> | 2023-05-09 18:05:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-10 14:04:48 (GMT) |
commit | 3a9b8ef0477a41e0146d7ab82f761fdc57f8b351 (patch) | |
tree | e7c3e75450b1f420dbd987a952fd3a7467b921bb /Tests/ISPC/CustomHeaderSuffix | |
parent | 6aae34ec53daf92a5ff272fb56757109003edb99 (diff) | |
download | CMake-3a9b8ef0477a41e0146d7ab82f761fdc57f8b351.zip CMake-3a9b8ef0477a41e0146d7ab82f761fdc57f8b351.tar.gz CMake-3a9b8ef0477a41e0146d7ab82f761fdc57f8b351.tar.bz2 |
Tests: Teach ISPC tests to run on macOS arm64 host
Diffstat (limited to 'Tests/ISPC/CustomHeaderSuffix')
-rw-r--r-- | Tests/ISPC/CustomHeaderSuffix/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/ISPC/CustomHeaderSuffix/CMakeLists.txt b/Tests/ISPC/CustomHeaderSuffix/CMakeLists.txt index d20f88e..4cf5ca1 100644 --- a/Tests/ISPC/CustomHeaderSuffix/CMakeLists.txt +++ b/Tests/ISPC/CustomHeaderSuffix/CMakeLists.txt @@ -6,7 +6,11 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 4) set(CMAKE_ISPC_FLAGS "--arch=x86") endif() -set(CMAKE_ISPC_INSTRUCTION_SETS "sse2-i32x4;sse4-i8x16") +if("${CMAKE_SYSTEM_NAME};${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "Darwin;arm64") + set(CMAKE_ISPC_INSTRUCTION_SETS "neon-i32x4") +else() + set(CMAKE_ISPC_INSTRUCTION_SETS "sse2-i32x4;sse4-i8x16") +endif() set(CMAKE_ISPC_HEADER_SUFFIX ".ispc.h") |