summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpolly/lib/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/polly/lib/CMakeLists.txt b/polly/lib/CMakeLists.txt
index b73301eb02c..933bbc3ea6c 100755
--- a/polly/lib/CMakeLists.txt
+++ b/polly/lib/CMakeLists.txt
@@ -37,6 +37,11 @@ add_polly_loadable_module(LLVMPolly
${POLLY_PLUTO_FILES}
)
+if (TARGET intrinsics_gen)
+ # Check if we are building as part of an LLVM build
+ add_dependencies(LLVMPolly intrinsics_gen)
+endif()
+
add_dependencies(LLVMPolly
PollyAnalysis
PollyCodeGen
OpenPOWER on IntegriCloud