diff options
-rw-r--r-- | compiler-rt/cmake/Modules/AddCompilerRT.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake index 4fed3056190..43726731866 100644 --- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake +++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake @@ -482,6 +482,9 @@ macro(add_custom_libcxx name prefix) if(NOT COMPILER_RT_STANDALONE_BUILD) set(force_deps DEPENDS clang) endif() + else() + set(compiler_args -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} + -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}) endif() if(CMAKE_SYSROOT) |