[llvm] 3c65d54 - [llvm] Disable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default on Arm Linux
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 27 02:03:47 PDT 2021
Author: David Spickett
Date: 2021-09-27T09:03:26Z
New Revision: 3c65d54ec3d29a32a710173349fc20288de3f481
URL: https://github.com/llvm/llvm-project/commit/3c65d54ec3d29a32a710173349fc20288de3f481
DIFF: https://github.com/llvm/llvm-project/commit/3c65d54ec3d29a32a710173349fc20288de3f481.diff
LOG: [llvm] Disable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default on Arm Linux
Due to the way detecting the hard float ABI is currently
handled, clang fails to find the per target dir.
I am working to fix this but in the meantime disable it by
default on Arm Linux.
Added:
Modified:
llvm/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 850728029ebe..069fb8b7c0f8 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -677,7 +677,8 @@ 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 "Linux")
+# 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")
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