[Lldb-commits] [compiler-rt] [libcxx] [libcxxabi] [libunwind] [lldb] [llvm] [compiler-rt] Disable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON on AIX. (PR #131200)

Louis Dionne via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 20 12:14:39 PDT 2025


================
@@ -223,6 +223,13 @@ endif()
 # This can be used to detect whether we're in the runtimes build.
 set(LLVM_RUNTIMES_BUILD ON)
 
+if (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
+  # Set LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF as AIX doesn't support it
+  message(WARNING
+  "LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON is not supported on AIX. LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is set to OFF.")
+  set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "" FORCE)
+endif()
----------------
ldionne wrote:

Right, but the mistake in that case is at the level of the CMake invocation. Whoever configured their CMake invocation passed `-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON` mistakenly, right? We should tell the user that their invocation is wrong with a `FATAL_ERROR`, not ignore their setting and continue.

https://github.com/llvm/llvm-project/pull/131200


More information about the lldb-commits mailing list