mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 18:26:37 +00:00
Revert "Revert "[CMake] Enable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default on Linux""
This reverts commit 90c9d41c8acc34fb68958f373eb23f53c1b1c840. Keeping arm* LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on is sufficient to work around LLVM_ENABLE_RUNTIMES not working well with arm. It is more important for LLVM_ENABLE_PROJECTS and LLVM_ENABLE_RUNTIMES to match in the file hierarchy.
This commit is contained in:
parent
1490f87154
commit
07f21021e7
@ -746,7 +746,13 @@ 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)
|
||||
|
||||
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL
|
||||
# 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)
|
||||
endif()
|
||||
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ${LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default} CACHE BOOL
|
||||
"Enable per-target runtimes directory")
|
||||
|
||||
set(LLVM_PROFDATA_FILE "" CACHE FILEPATH
|
||||
|
Loading…
x
Reference in New Issue
Block a user