[llvm] r332923 - [CMake] Pass Clang defaults to runtimes builds
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Mon May 21 17:43:04 PDT 2018
Author: phosek
Date: Mon May 21 17:43:04 2018
New Revision: 332923
URL: http://llvm.org/viewvc/llvm-project?rev=332923&view=rev
Log:
[CMake] Pass Clang defaults to runtimes builds
This enables the use of Clang default options from runtimes CMake files.
Differential Revision: https://reviews.llvm.org/D47168
Modified:
llvm/trunk/runtimes/CMakeLists.txt
Modified: llvm/trunk/runtimes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtimes/CMakeLists.txt?rev=332923&r1=332922&r2=332923&view=diff
==============================================================================
--- llvm/trunk/runtimes/CMakeLists.txt (original)
+++ llvm/trunk/runtimes/CMakeLists.txt Mon May 21 17:43:04 2018
@@ -252,6 +252,7 @@ else() # if this is included from LLVM's
-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 @@ else() # if this is included from LLVM's
-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 @@ else() # if this is included from LLVM's
-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 @@ else() # if this is included from LLVM's
-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}
More information about the llvm-commits
mailing list