| 1 |
set(LLVM_LINK_COMPONENTS |
| 2 |
Analysis |
| 3 |
AsmParser |
| 4 |
Core |
| 5 |
Passes |
| 6 |
Support |
| 7 |
ScalarOpts |
| 8 |
TransformUtils |
| 9 |
) |
| 10 |
|
| 11 |
add_llvm_unittest(ScalarTests |
| 12 |
LICMTest.cpp |
| 13 |
LoopPassManagerTest.cpp |
| 14 |
) |
| 15 |
|
| 16 |
target_link_libraries(ScalarTests PRIVATE LLVMTestingSupport) |
| 17 |
|
| 18 |
# Workaround for the gcc 6.1 bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80916. |
| 19 |
if (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) |
| 21 |
endif() |
| 22 |
|
| 23 |
set_property(TARGET ScalarTests PROPERTY FOLDER "Tests/UnitTests/TransformsTests") |