Skip to content

Commit 83039f5

Browse files
committed
Simplify the fix: found to way to override teh cache file.
1 parent fd3be92 commit 83039f5

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
@@ -1187,16 +1187,19 @@ endif()
11871187
# Build with _XOPEN_SOURCE on AIX, as stray macros in _ALL_SOURCE mode tend to
11881188
# break things. In this case we need to enable the large-file API as well.
11891189
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)
11931193

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

11981198
# Also set the correct flags for building shared libraries.
11991199
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)
12001203
endif()
12011204

12021205
# Build with _XOPEN_SOURCE on z/OS.

0 commit comments

Comments
 (0)