File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1187,16 +1187,19 @@ endif()
1187
1187
# Build with _XOPEN_SOURCE on AIX, as stray macros in _ALL_SOURCE mode tend to
1188
1188
# break things. In this case we need to enable the large-file API as well.
1189
1189
if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX" )
1190
- add_compile_definitions (_XOPEN_SOURCE=700 )
1191
- add_compile_definitions (_LARGE_FILE_API )
1192
- add_compile_options (-pthread )
1190
+ add_compile_definitions (_XOPEN_SOURCE=700 )
1191
+ add_compile_definitions (_LARGE_FILE_API )
1192
+ add_compile_options (-pthread )
1193
1193
1194
1194
# Modules should be built with -shared -Wl,-G, so we can use runtime linking
1195
1195
# with plugins.
1196
1196
string (APPEND CMAKE_MODULE_LINKER_FLAGS " -shared -Wl,-G" )
1197
1197
1198
1198
# Also set the correct flags for building shared libraries.
1199
1199
string (APPEND CMAKE_SHARED_LINKER_FLAGS " -shared" )
1200
+
1201
+ # Set LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF as AIX doesn't support it
1202
+ set (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "" FORCE )
1200
1203
endif ()
1201
1204
1202
1205
# Build with _XOPEN_SOURCE on z/OS.
You can’t perform that action at this time.
0 commit comments