[PATCH] D47168: [CMake] Pass Clang defaults to runtimes builds

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 21 16:24:43 PDT 2018


phosek created this revision.
phosek added reviewers: beanz, vitalybuka.
Herald added subscribers: llvm-commits, mgorny.

This enables the use of Clang default options from runtimes CMake files.


Repository:
  rL LLVM

https://reviews.llvm.org/D47168

Files:
  llvm/runtimes/CMakeLists.txt


Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -252,6 +252,7 @@
                                         -DCMAKE_C_COMPILER_WORKS=ON
                                         -DCMAKE_ASM_COMPILER_WORKS=ON
                              PASSTHROUGH_PREFIXES COMPILER_RT
+                                                  CLANG_DEFAULT
                              USE_TOOLCHAIN
                              ${EXTRA_ARGS})
   endfunction()
@@ -283,6 +284,7 @@
                                         -DCMAKE_ASM_COMPILER_WORKS=ON
                                         -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
                                         ${${target}_extra_args}
+                             PASSTHROUGH_PREFIXES CLANG_DEFAULT
                              TOOLCHAIN_TOOLS clang lld llvm-ar llvm-ranlib
                              USE_TOOLCHAIN
                              ${EXTRA_ARGS})
@@ -376,6 +378,7 @@
                                         -DCMAKE_CXX_COMPILER_WORKS=ON
                                         -DCMAKE_ASM_COMPILER_WORKS=ON
                              PASSTHROUGH_PREFIXES LLVM_ENABLE_RUNTIMES
+                                                  CLANG_DEFAULT
                                                   ${ARG_PREFIXES}
                              EXTRA_TARGETS ${extra_targets}
                                            ${test_targets}
@@ -459,6 +462,7 @@
                                         -DLLVM_RUNTIMES_TARGET=${name}
                                         ${${name}_extra_args}
                              PASSTHROUGH_PREFIXES LLVM_ENABLE_RUNTIMES
+                                                  CLANG_DEFAULT
                              TOOLCHAIN_TOOLS clang lld llvm-ar llvm-ranlib
                              EXTRA_TARGETS ${${name}_extra_targets}
                                            ${${name}_test_targets}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47168.147899.patch
Type: text/x-patch
Size: 2020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180521/572bde96/attachment.bin>


More information about the llvm-commits mailing list