File tree 3 files changed +18
-4
lines changed
3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE)
109
109
extend_path(default_install_path "${COMPILER_RT_INSTALL_PATH} " lib)
110
110
set (COMPILER_RT_INSTALL_LIBRARY_DIR "${default_install_path} " CACHE PATH
111
111
"Path where built compiler-rt libraries should be installed." )
112
- else (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE )
112
+ else ()
113
113
set (COMPILER_RT_OUTPUT_LIBRARY_DIR
114
114
${COMPILER_RT_OUTPUT_DIR} /lib/${COMPILER_RT_OS_DIR} )
115
115
extend_path(default_install_path "${COMPILER_RT_INSTALL_PATH} " "lib/${COMPILER_RT_OS_DIR} " )
Original file line number Diff line number Diff line change @@ -1190,16 +1190,23 @@ endif()
1190
1190
# Build with _XOPEN_SOURCE on AIX, as stray macros in _ALL_SOURCE mode tend to
1191
1191
# break things. In this case we need to enable the large-file API as well.
1192
1192
if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX" )
1193
- add_compile_definitions (_XOPEN_SOURCE=700)
1194
- add_compile_definitions (_LARGE_FILE_API)
1195
- add_compile_options (-pthread)
1193
+ add_compile_definitions (_XOPEN_SOURCE=700)
1194
+ add_compile_definitions (_LARGE_FILE_API)
1195
+ add_compile_options (-pthread)
1196
1196
1197
1197
# Modules should be built with -shared -Wl,-G, so we can use runtime linking
1198
1198
# with plugins.
1199
1199
string (APPEND CMAKE_MODULE_LINKER_FLAGS " -shared -Wl,-G" )
1200
1200
1201
1201
# Also set the correct flags for building shared libraries.
1202
1202
string (APPEND CMAKE_SHARED_LINKER_FLAGS " -shared" )
1203
+
1204
+ # Set LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF as AIX doesn't support it
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 ()
1203
1210
endif ()
1204
1211
1205
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