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")
1202
1202
string (APPEND CMAKE_SHARED_LINKER_FLAGS " -shared" )
1203
1203
1204
1204
# 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 ()
1206
1210
endif ()
1207
1211
1208
1212
# Build with _XOPEN_SOURCE on z/OS.
Original file line number Diff line number Diff line change @@ -223,6 +223,13 @@ endif()
223
223
# This can be used to detect whether we're in the runtimes build.
224
224
set (LLVM_RUNTIMES_BUILD ON )
225
225
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
+
226
233
foreach (entry ${runtimes} )
227
234
get_filename_component (projName ${entry} NAME )
228
235
You can’t perform that action at this time.
0 commit comments