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 @@ -1190,16 +1190,19 @@ 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
+ set (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "" FORCE )
1203
1206
endif ()
1204
1207
1205
1208
# Build with _XOPEN_SOURCE on z/OS.
You can’t perform that action at this time.
0 commit comments