22 lines · plain
1set(LLVM_LINK_COMPONENTS2 Analysis3 AsmParser4 Core5 Passes6 Support7 ScalarOpts8 TransformUtils9 )10 11add_llvm_unittest(ScalarTests12 LICMTest.cpp13 LoopPassManagerTest.cpp14 )15 16target_link_libraries(ScalarTests PRIVATE LLVMTestingSupport)17 18# Workaround for the gcc 6.1 bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80916.19if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)20 set_source_files_properties(LoopPassManagerTest.cpp PROPERTIES COMPILE_FLAGS -Wno-unused-function)21endif()22