Skip to content

Commit 8c70651

Browse files
committed
Simplify the fix: found to way to override teh cache file.
1 parent 929c397 commit 8c70651

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

llvm/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,16 +1190,19 @@ endif()
11901190
# Build with _XOPEN_SOURCE on AIX, as stray macros in _ALL_SOURCE mode tend to
11911191
# break things. In this case we need to enable the large-file API as well.
11921192
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)
11961196

11971197
# Modules should be built with -shared -Wl,-G, so we can use runtime linking
11981198
# with plugins.
11991199
string(APPEND CMAKE_MODULE_LINKER_FLAGS " -shared -Wl,-G")
12001200

12011201
# Also set the correct flags for building shared libraries.
12021202
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)
12031206
endif()
12041207

12051208
# Build with _XOPEN_SOURCE on z/OS.

0 commit comments

Comments
 (0)