Should fix llvm-clang-lld-x86_64-debian-fast bot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220071
91177308-0d34-0410-b5e6-
96231b3b80d8
set(HOST_OS ${CMAKE_SYSTEM_NAME})
set(HOST_ARCH ${CMAKE_SYSTEM_PROCESSOR})
- set(HOST_CC "${CMAKE_C_COMPILER}")
- set(HOST_CXX "${CMAKE_CXX_COMPILER}")
+ set(HOST_CC "${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}")
+ set(HOST_CXX "${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1}")
configure_file(${input} ${output} @ONLY)
endfunction()
# This is a Go-specific hack. cgo and other Go tools check $CC and $CXX for the
# substring 'clang' to determine if the compiler is Clang. This won't work if
# $CC is cc and cc is a symlink pointing to clang, as it is on Darwin.
+#
+# Go tools also have problems with ccache, so we disable it.
def fixup_compiler_path(compiler):
args = shlex.split(compiler)
+ if args[0].endswith('ccache'):
+ args = args[1:]
+
path = find_executable(args[0])
try: