Skip to content

Commit bb89988

Browse files
authored
[AIX][CMake] Disable openmp as LLVM_ENABLE_PROJECTS (#110152)
in favor of LLVM_ENABLE_RUNTIMES
1 parent 6d13cc9 commit bb89988

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ 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+
120126
# The flang project is not yet part of "all" projects (see C++ requirements)
121127
set(LLVM_EXTRA_PROJECTS "flang")
122128
# List of all known projects in the mono repo

0 commit comments

Comments
 (0)