diff options
| author | Puyan Lotfi <puyan@puyan.org> | 2019-09-10 22:55:47 +0000 |
|---|---|---|
| committer | Puyan Lotfi <puyan@puyan.org> | 2019-09-10 22:55:47 +0000 |
| commit | 244e738485445fa4b72bfef9b9b2f9625cee989e (patch) | |
| tree | 6575c6045dc8cbc50039d7b02544d39487e47ea5 | |
| parent | f7b4022db1746fb9b22114d83fe690755e7f0cf5 (diff) | |
| download | bcm5719-llvm-244e738485445fa4b72bfef9b9b2f9625cee989e.tar.gz bcm5719-llvm-244e738485445fa4b72bfef9b9b2f9625cee989e.zip | |
Adding support for overriding LLVM_ENABLE_RUNTIMES for runtimes builds.
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
llvm-svn: 371566
| -rw-r--r-- | llvm/runtimes/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index 552ab7b2a88..08fd7ed81a0 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -460,6 +460,10 @@ else() # if this is included from LLVM's CMake endif() endforeach() + if(NOT RUNTIMES_${name}_LLVM_ENABLE_RUNTIMES) + list(APPEND ${name}_extra_args -DLLVM_ENABLE_RUNTIMES=${LLVM_ENABLE_RUNTIMES}) + endif() + if(target IN_LIST LLVM_RUNTIME_BUILD_ID_LINK_TARGETS) list(APPEND EXTRA_ARGS STRIP_TOOL ${CMAKE_CURRENT_BINARY_DIR}/llvm-strip-link) endif() @@ -482,7 +486,6 @@ else() # if this is included from LLVM's CMake -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON -DLLVM_RUNTIMES_TARGET=${name} ${${name}_extra_args} - PASSTHROUGH_PREFIXES LLVM_ENABLE_RUNTIMES TOOLCHAIN_TOOLS clang lld llvm-ar llvm-ranlib llvm-nm llvm-objcopy llvm-objdump llvm-strip EXTRA_TARGETS ${${name}_extra_targets} ${${name}_test_targets} |

