summaryrefslogtreecommitdiff
path: root/polly/unittests
diff options
context:
space:
mode:
authorLogan Smith <logan.r.smith0@gmail.com>2020-07-22 14:16:35 -0700
committerLogan Smith <logan.r.smith0@gmail.com>2020-07-22 14:19:34 -0700
commit388c9fb1af48b059d8b65cb2e002e0992d147aa5 (patch)
tree1f2af2e867b41fbb248508829aac348f1d633260 /polly/unittests
parent5c2451785dfe6d8a4448690cd1f1c247036bfca6 (diff)
downloadllvm-388c9fb1af48b059d8b65cb2e002e0992d147aa5.tar.gz
Try enabling -Wsuggest-override again, using add_compile_options instead of add_compile_definitions for disabling it in unittests/ directories.
Using add_compile_definitions caused the flag to be passed to rc.exe on Windows and thus broke Windows builds.
Diffstat (limited to 'polly/unittests')
-rw-r--r--polly/unittests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/polly/unittests/CMakeLists.txt b/polly/unittests/CMakeLists.txt
index fac70383de94..1a6881fde3fd 100644
--- a/polly/unittests/CMakeLists.txt
+++ b/polly/unittests/CMakeLists.txt
@@ -19,6 +19,10 @@ function(add_polly_unittest test_name)
target_link_libraries(${test_name} PRIVATE Polly)
endfunction()
+if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
+ add_compile_options("-Wno-suggest-override")
+endif()
+
add_subdirectory(Isl)
add_subdirectory(Flatten)
add_subdirectory(DeLICM)