Skip to content

Commit 32e1ceb

Browse files
committed
[CMake] Enable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default on *BSD
Similar to D107799 but for *BSD (DragonFlyBSD, FreeBSD, NetBSD, OpenBSD, etc). This Linux default has been in main and release/15.x for a while. `CMAKE_SYSTEM_PROCESSOR MATCHES "^arm"` is excluded for now. Link: https://discourse.llvm.org/t/rfc-time-to-drop-legacy-runtime-paths/64628 Reviewed By: dim Differential Revision: https://reviews.llvm.org/D110126
1 parent 026fac2 commit 32e1ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ set(LLVM_TARGET_TRIPLE_ENV CACHE STRING "The name of environment variable to ove
799799
mark_as_advanced(LLVM_TARGET_TRIPLE_ENV)
800800

801801
# Per target dir not yet supported on Arm 32 bit due to arm vs armhf handling
802-
if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
802+
if(CMAKE_SYSTEM_NAME MATCHES "BSD|Linux" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
803803
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default ON)
804804
else()
805805
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default OFF)

0 commit comments

Comments
 (0)