File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -565,3 +565,9 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
565
565
)
566
566
endif ()
567
567
568
+ option (WITH_POLLY "Build LLVM with Polly" ON )
569
+ if (WITH_POLLY )
570
+ if (NOT EXISTS ${LLVM_MAIN_SRC_DIR} /tools/polly/CMakeLists.txt )
571
+ set (WITH_POLLY OFF )
572
+ endif ()
573
+ endif (WITH_POLLY )
Original file line number Diff line number Diff line change @@ -66,7 +66,12 @@ add_llvm_external_project(clang)
66
66
if ( NOT LLVM_INCLUDE_TOOLS STREQUAL "bootstrap-only" )
67
67
add_llvm_external_project (lld )
68
68
add_llvm_external_project (lldb )
69
- add_llvm_external_project (polly )
69
+
70
+ if (WITH_POLLY )
71
+ add_llvm_external_project (polly )
72
+ else (WITH_POLLY )
73
+ list (APPEND LLVM_IMPLICIT_PROJECT_IGNORE "${CMAKE_CURRENT_SOURCE_DIR} /polly" )
74
+ endif (WITH_POLLY )
70
75
71
76
# Automatically add remaining sub-directories containing a 'CMakeLists.txt'
72
77
# file as external projects.
You can’t perform that action at this time.
0 commit comments