diff options
Diffstat (limited to 'final/Bitcode/CMakeLists.txt')
-rw-r--r-- | final/Bitcode/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/final/Bitcode/CMakeLists.txt b/final/Bitcode/CMakeLists.txt new file mode 100644 index 00000000..7da7a43a --- /dev/null +++ b/final/Bitcode/CMakeLists.txt @@ -0,0 +1,19 @@ +# 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() + file(COPY lit.local.cfg DESTINATION "${CMAKE_CURRENT_BINARY_DIR}") +endif() |