Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 4ead439

Browse files
committed
Adding support for overriding LLVM_ENABLE_RUNTIMES for runtimes builds.
Second attempt: Now with ';' -> '|' replacement. On some platforms, certain runtimes are not supported. For runtimes builds of those platforms it would be nice if we could disable certain runtimes (ie libunwind on Windows). Differential Revision: https://reviews.llvm.org/D67195 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372784 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 15271f4 commit 4ead439

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runtimes/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,11 @@ else() # if this is included from LLVM's CMake
460460
endif()
461461
endforeach()
462462

463+
if(NOT RUNTIMES_${name}_LLVM_ENABLE_RUNTIMES)
464+
string(REPLACE ";" "|" LLVM_ENABLE_RUNTIMES_PASSTHROUGH "${LLVM_ENABLE_RUNTIMES}")
465+
list(APPEND ${name}_extra_args -DLLVM_ENABLE_RUNTIMES=${LLVM_ENABLE_RUNTIMES_PASSTHROUGH})
466+
endif()
467+
463468
if(target IN_LIST LLVM_RUNTIME_BUILD_ID_LINK_TARGETS)
464469
list(APPEND EXTRA_ARGS STRIP_TOOL ${CMAKE_CURRENT_BINARY_DIR}/llvm-strip-link)
465470
endif()
@@ -482,7 +487,6 @@ else() # if this is included from LLVM's CMake
482487
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
483488
-DLLVM_RUNTIMES_TARGET=${name}
484489
${${name}_extra_args}
485-
PASSTHROUGH_PREFIXES LLVM_ENABLE_RUNTIMES
486490
TOOLCHAIN_TOOLS clang lld llvm-ar llvm-ranlib llvm-nm llvm-objcopy llvm-objdump llvm-strip
487491
EXTRA_TARGETS ${${name}_extra_targets}
488492
${${name}_test_targets}

0 commit comments

Comments
 (0)