[llvm] [CMake] Enable per-target runtime directory by default (PR #200881)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 2 19:59:50 PDT 2026


https://github.com/jinge90 updated https://github.com/llvm/llvm-project/pull/200881

>From 48a3f46b41db5a5fe1394c21521d99bb2b0646ef Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Fri, 29 May 2026 18:24:46 +0000
Subject: [PATCH] [CMake] Enable per-target runtime directory by default

This is supported and tested on all platforms except Darwin, but we
already have a carveouts for Darwin in the build system, so it should
be safe to enable the per-target runtime directory by default.
---
 llvm/CMakeLists.txt | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 4509fbaba1d25..e433860c875f3 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -1049,12 +1049,7 @@ endif()
 set(LLVM_TARGET_TRIPLE_ENV CACHE STRING "The name of environment variable to override default target. Disabled by blank.")
 mark_as_advanced(LLVM_TARGET_TRIPLE_ENV)
 
-if(CMAKE_SYSTEM_NAME MATCHES "BSD|Linux|OS390|AIX")
-  set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default ON)
-else()
-  set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default OFF)
-endif()
-set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ${LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default} CACHE BOOL
+set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ON CACHE BOOL
   "Enable per-target runtimes directory")
 
 set(LLVM_PROFDATA_FILE "" CACHE FILEPATH



More information about the llvm-commits mailing list