llvm.org GIT mirror llvm / 6dc7825
[CMake][runtimes] Set compiler as working even for default target Even when building builtins and runtimes for the default target we shouldn't assume that the just built compiler is already useable. When the compiler uses compiler-rt and libc++ as the default runtime and C++ library, it won't be usable until we finish building runtimes. Differential Revision: https://reviews.llvm.org/D39715 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318224 91177308-0d34-0410-b5e6-96231b3b80d8 Petr Hosek 3 years ago
1 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
215215 -DLLVM_RUNTIME_OUTPUT_INTDIR=${LLVM_TOOLS_BINARY_DIR}
216216 -DCMAKE_C_COMPILER_TARGET=${TARGET_TRIPLE}
217217 -DCMAKE_ASM_COMPILER_TARGET=${TARGET_TRIPLE}
218 -DCMAKE_C_COMPILER_WORKS=ON
219 -DCMAKE_ASM_COMPILER_WORKS=ON
218220 PASSTHROUGH_PREFIXES COMPILER_RT
219221 USE_TOOLCHAIN
220222 ${EXTRA_ARGS})
243245 -DLLVM_RUNTIME_OUTPUT_INTDIR=${LLVM_TOOLS_BINARY_DIR}
244246 -DCMAKE_C_COMPILER_TARGET=${target}
245247 -DCMAKE_ASM_COMPILER_TARGET=${target}
246 -DCMAKE_C_COMPILER_WORKS=On
247 -DCMAKE_ASM_COMPILER_WORKS=On
248 -DCOMPILER_RT_DEFAULT_TARGET_ONLY=On
248 -DCMAKE_C_COMPILER_WORKS=ON
249 -DCMAKE_ASM_COMPILER_WORKS=ON
250 -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
249251 ${${target}_extra_args}
250252 TOOLCHAIN_TOOLS clang lld llvm-ar llvm-ranlib
251253 PASSTHROUGH_PREFIXES COMPILER_RT
323325 CMAKE_ARGS -DCOMPILER_RT_BUILD_BUILTINS=Off
324326 -DLLVM_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
325327 -DLLVM_LIBRARY_DIR=${LLVM_LIBRARY_DIR}
328 -DCMAKE_C_COMPILER_WORKS=ON
329 -DCMAKE_CXX_COMPILER_WORKS=ON
330 -DCMAKE_ASM_COMPILER_WORKS=ON
326331 PASSTHROUGH_PREFIXES ${prefixes}
327332 EXTRA_TARGETS ${extra_targets}
328333 ${test_targets}