[PATCH] D67195: Adding support for overriding LLVM_ENABLE_RUNTIMES for runtimes builds.

Puyan Lotfi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 15:27:13 PDT 2019


plotfi created this revision.
plotfi added reviewers: compnerd, beanz.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.

On some platforms, certain runtimes are not supported. For runtimes builds of those platforms it would be nice if we could disable certain runtimes.


Repository:
  rL LLVM

https://reviews.llvm.org/D67195

Files:
  runtimes/CMakeLists.txt


Index: runtimes/CMakeLists.txt
===================================================================
--- runtimes/CMakeLists.txt
+++ runtimes/CMakeLists.txt
@@ -460,6 +460,10 @@
       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 @@
                                         -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}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67195.218798.patch
Type: text/x-patch
Size: 1083 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190904/13f2b8b4/attachment.bin>


More information about the llvm-commits mailing list