[polly] r247600 - Run polly-check-format with unit tests
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 12:11:48 PDT 2015
Author: meinersbur
Date: Mon Sep 14 14:11:48 2015
New Revision: 247600
URL: http://llvm.org/viewvc/llvm-project?rev=247600&view=rev
Log:
Run polly-check-format with unit tests
Add polly-check-format as dependency of check-polly if clang-format is
available in the same build.
Differential Revision: http://reviews.llvm.org/D12850
Modified:
polly/trunk/test/CMakeLists.txt
Modified: polly/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CMakeLists.txt?rev=247600&r1=247599&r2=247600&view=diff
==============================================================================
--- polly/trunk/test/CMakeLists.txt (original)
+++ polly/trunk/test/CMakeLists.txt Mon Sep 14 14:11:48 2015
@@ -78,6 +78,14 @@ else (NOT DEFINED LLVM_MAIN_SRC_DIR)
set_target_properties(check-polly PROPERTIES FOLDER "Polly")
+ # Run polly-check-format as part of polly-check only if we are compiling with
+ # clang, so clang-format is availbale.
+ # if (TARGET clang-format) would be preferable, but this target is only added
+ # after Polly, i.e. there is no such target yet at this point.
+ if (LLVM_EXTERNAL_CLANG_BUILD)
+ add_dependencies(check-polly polly-check-format)
+ endif ()
+
endif (NOT DEFINED LLVM_MAIN_SRC_DIR)
configure_file(
More information about the llvm-commits
mailing list