diff options
| author | Petr Hosek <phosek@chromium.org> | 2019-05-19 03:29:15 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2019-05-19 03:29:15 +0000 |
| commit | cd78209a351047b9bb88e5d50e31e716fc292f56 (patch) | |
| tree | e3679cc01de7e17529d952678378e2bb1c9a9cf4 /compiler-rt/cmake/Modules | |
| parent | 2ff72f665417eea90642f185e1117cd984392a6b (diff) | |
| download | bcm5719-llvm-cd78209a351047b9bb88e5d50e31e716fc292f56.tar.gz bcm5719-llvm-cd78209a351047b9bb88e5d50e31e716fc292f56.zip | |
Use CMAKE_C_COMPILER_ARG1 in compiler invocation
This is needed when using compiler wrappers such as ccache or distcc
and should address the failure on clang-x86_64-debian-fast bot.
Differential Revision: https://reviews.llvm.org/D62104
llvm-svn: 361111
Diffstat (limited to 'compiler-rt/cmake/Modules')
| -rw-r--r-- | compiler-rt/cmake/Modules/AddCompilerRT.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake index 75891168411..f7ee932f214 100644 --- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake +++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake @@ -262,10 +262,11 @@ function(add_compiler_rt_runtime name type) string(REGEX MATCHALL "<[A-Za-z0-9_]*>" substitutions ${CMAKE_C_COMPILE_OBJECT}) set(compile_command_${libname} "${CMAKE_C_COMPILE_OBJECT}") + set(output_file_${libname} ${output_name_${libname}}${CMAKE_C_OUTPUT_EXTENSION}) foreach(substitution ${substitutions}) if(substitution STREQUAL "<CMAKE_C_COMPILER>") - string(REPLACE "<CMAKE_C_COMPILER>" "${CMAKE_C_COMPILER}" + string(REPLACE "<CMAKE_C_COMPILER>" "${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}" compile_command_${libname} ${compile_command_${libname}}) elseif(substitution STREQUAL "<OBJECT>") string(REPLACE "<OBJECT>" "${output_dir_${libname}}/${output_file_${libname}}" |

