X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=test%2FBindings%2FGo%2Flit.local.cfg;h=f366397a2b2cd2a3b344b15f1e50271ec39b0ae2;hp=c41ff16b287e944a99048731f8d1310ae3f7d525;hb=560e2700e257d34a3d79ef7e49dd1c572523ab36;hpb=b6591042cd1f267b3b12adc584b744cd4c784e49 diff --git a/test/Bindings/Go/lit.local.cfg b/test/Bindings/Go/lit.local.cfg index c41ff16b287..f366397a2b2 100644 --- a/test/Bindings/Go/lit.local.cfg +++ b/test/Bindings/Go/lit.local.cfg @@ -29,8 +29,13 @@ def find_executable(executable, path=None): # 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: