blob: 186bfe8f965998f8423e5237c3c8a785f480d7ea [file] [log] [blame]
# 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)
add_subdirectory(Benchmarks)
if(NOT TEST_SUITE_BENCHMARKING_ONLY)
add_subdirectory(Regression)
if(ARCH STREQUAL "x86" OR ARCH STREQUAL "AArch64" OR ARCH STREQUAL "ARM")
add_subdirectory(simd_ops)
endif()
endif()
endif()