[llvm] 32e1ceb - [CMake] Enable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default on *BSD
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 14 11:24:26 PDT 2022
Author: Fangrui Song
Date: 2022-09-14T11:24:00-07:00
New Revision: 32e1ceb49b7c4f3e1dc1c5d2a3200622132acb6c
URL: https://github.com/llvm/llvm-project/commit/32e1ceb49b7c4f3e1dc1c5d2a3200622132acb6c
DIFF: https://github.com/llvm/llvm-project/commit/32e1ceb49b7c4f3e1dc1c5d2a3200622132acb6c.diff
LOG: [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
Added:
Modified:
llvm/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 1e8e53c414fd..d9750e2acc1a 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -799,7 +799,7 @@ set(LLVM_TARGET_TRIPLE_ENV CACHE STRING "The name of environment variable to ove
mark_as_advanced(LLVM_TARGET_TRIPLE_ENV)
# Per target dir not yet supported on Arm 32 bit due to arm vs armhf handling
-if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
+if(CMAKE_SYSTEM_NAME MATCHES "BSD|Linux" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default ON)
else()
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default OFF)
More information about the llvm-commits
mailing list