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 @@ -1202,7 +1202,11 @@ if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
12021202 string (APPEND CMAKE_SHARED_LINKER_FLAGS " -shared" )
12031203
12041204 # Set LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF as AIX doesn't support it
1205- set (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "" FORCE)
1205+ if (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
1206+ message (WARNING
1207+ "LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON is not supported on AIX. LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is set to OFF." )
1208+ set (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "" FORCE)
1209+ endif ()
12061210endif ()
12071211
12081212# Build with _XOPEN_SOURCE on z/OS.
Original file line number Diff line number Diff line change @@ -223,6 +223,13 @@ endif()
223223# This can be used to detect whether we're in the runtimes build.
224224set (LLVM_RUNTIMES_BUILD ON )
225225
226+ if (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX" )
227+ # Set LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF as AIX doesn't support it
228+ message (WARNING
229+ "LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON is not supported on AIX. LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is set to OFF." )
230+ set (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "" FORCE)
231+ endif ()
232+
226233foreach (entry ${runtimes} )
227234 get_filename_component (projName ${entry} NAME )
228235
You can’t perform that action at this time.
0 commit comments