[yaml2obj/obj2yaml] - Do not trigger llvm_unreachable when dumping/parsing relocation...
[llvm-complete.git] / unittests / Transforms / Scalar / CMakeLists.txt
blob3d01d5c53341dcad83784fc581cae0696ad0b3aa
1 set(LLVM_LINK_COMPONENTS
2   Analysis
3   AsmParser
4   Core
5   Support
6   ScalarOpts
7   TransformUtils
8   )
10 add_llvm_unittest(ScalarTests
11   LoopPassManagerTest.cpp
12   )
14 # Workaround for the gcc 6.1 bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80916.
15 if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
16   set_source_files_properties(LoopPassManagerTest.cpp PROPERTIES COMPILE_FLAGS -Wno-unused-function)
17 endif()