Skip to content

Commit 0e763ee

Browse files
committed
Disable openmp as LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES on AIX.
1 parent 2b84ef0 commit 0e763ee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ endif()
117117
# This allows an easy way of setting up a build directory for llvm and another
118118
# one for llvm+clang+... using the same sources.
119119
set(LLVM_ALL_PROJECTS "bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libc;libclc;lld;lldb;mlir;openmp;polly;pstl")
120+
if (${CMAKE_SYSTEM_NAME} MATCHES "AIX")
121+
# Disallow 'openmp' as a LLVM PROJECT on AIX as the supported way is to use
122+
# LLVM_ENABLE_RUNTIMES.
123+
list(REMOVE_ITEM LLVM_ALL_PROJECTS openmp)
124+
endif()
125+
126+
# The flang project is not yet part of "all" projects (see C++ requirements)
120127
# The flang project is not yet part of "all" projects (see C++ requirements)
121128
set(LLVM_EXTRA_PROJECTS "flang")
122129
# List of all known projects in the mono repo

0 commit comments

Comments
 (0)