-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
21 lines (20 loc) · 882 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# We need at least clang 3.9 to process the bitcode here.
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND
CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
NOT CMAKE_C_COMPILER_VERSION VERSION_LESS "3.9" AND
NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.9")
set(ENABLE_BITCODE_DEFAULT "True")
endif()
set(TEST_SUITE_ENABLE_BITCODE_TESTS ${ENABLE_BITCODE_DEFAULT} CACHE BOOL "Enable bitcode tests")
if(TEST_SUITE_ENABLE_BITCODE_TESTS)
llvm_add_subdirectories(Benchmarks)
if(NOT TEST_SUITE_BENCHMARKING_ONLY)
llvm_add_subdirectories(Regression)
if(ARCH STREQUAL "x86" OR ARCH STREQUAL "AArch64" OR ARCH STREQUAL "ARM")
#FIXME: Disable AArch64 tests until clarifying why the halide runtime is not linked on green dragon
if (NOT CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
llvm_add_subdirectories(simd_ops)
endif()
endif()
endif()
endif()