[test-suite] r277010 - cmake: Bitcode tests need mainline clang >= 3.9
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 10:27:59 PDT 2016
Author: matze
Date: Thu Jul 28 12:27:59 2016
New Revision: 277010
URL: http://llvm.org/viewvc/llvm-project?rev=277010&view=rev
Log:
cmake: Bitcode tests need mainline clang >= 3.9
Modified:
test-suite/trunk/Bitcode/CMakeLists.txt
Modified: test-suite/trunk/Bitcode/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Bitcode/CMakeLists.txt?rev=277010&r1=277009&r2=277010&view=diff
==============================================================================
--- test-suite/trunk/Bitcode/CMakeLists.txt (original)
+++ test-suite/trunk/Bitcode/CMakeLists.txt Thu Jul 28 12:27:59 2016
@@ -1,7 +1,17 @@
-if(NOT TEST_SUITE_BENCHMARKING_ONLY)
- llvm_add_subdirectories(Regression)
- if(ARCH STREQUAL "x86" OR ARCH STREQUAL "AArch64")
- llvm_add_subdirectories(simd_ops)
- endif()
+# 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)
+ if(NOT TEST_SUITE_BENCHMARKING_ONLY)
+ llvm_add_subdirectories(Regression)
+ if(ARCH STREQUAL "x86" OR ARCH STREQUAL "AArch64")
+ llvm_add_subdirectories(simd_ops)
+ endif()
+ endif()
+endif()
More information about the llvm-commits
mailing list