diff options
author | Petr Hosek <phosek@chromium.org> | 2018-01-21 03:22:22 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-01-21 03:22:22 +0000 |
commit | 065458866773f61eea59d0a18224f01a64a0085f (patch) | |
tree | ab18c0d67b8ae03b95fa3361adb630dfc1cf6acd /cmake/Modules | |
parent | 7ccfd6078f5bece8500c1e1da0e0d93eedc0da2c (diff) |
[sanitizer] Pass the CMake compiler to custom libc++ build
This addresses the error introduced in r323054 on some bots.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@323061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/AddCompilerRT.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake index 4fed30561..437267318 100644 --- a/cmake/Modules/AddCompilerRT.cmake +++ b/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) |