[compiler-rt] r353601 - [CMake] Don't set <PROJECT>_STANDALONE_BUILD
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 8 19:06:56 PST 2019
Author: phosek
Date: Fri Feb 8 19:06:56 2019
New Revision: 353601
URL: http://llvm.org/viewvc/llvm-project?rev=353601&view=rev
Log:
[CMake] Don't set <PROJECT>_STANDALONE_BUILD
We shouldn't be treating runtimes builds as standalone builds since
we have enough of the context loaded into the runtimes environment.
Differential Revision: https://reviews.llvm.org/D57992
Modified:
compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
Modified: compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake?rev=353601&r1=353600&r2=353601&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake Fri Feb 8 19:06:56 2019
@@ -515,7 +515,7 @@ macro(add_custom_libcxx name prefix)
if(LIBCXX_USE_TOOLCHAIN)
set(compiler_args -DCMAKE_C_COMPILER=${COMPILER_RT_TEST_COMPILER}
-DCMAKE_CXX_COMPILER=${COMPILER_RT_TEST_CXX_COMPILER})
- if(NOT COMPILER_RT_STANDALONE_BUILD)
+ if(NOT COMPILER_RT_STANDALONE_BUILD AND NOT RUNTIMES_BUILD)
set(toolchain_deps $<TARGET_FILE:clang>)
set(force_deps DEPENDS $<TARGET_FILE:clang>)
endif()
More information about the llvm-commits
mailing list