mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix go bindings test when using goma distributed build tool
Goma[1] is a distributed build system similar to distcc and icecc primarily used to compile Chromium. The client is open source, and hopefully soon the server will be as well. The intended usage model is similar to most distributed build systems: prefix gomacc onto your compiler command line, and it transparently distributes compilation. The go lit config wants to determine the host compiler binary, so it needs some extra logic to avoid looking at these prefixes. [1] https://chromium.googlesource.com/infra/goma/client/ llvm-svn: 328580
This commit is contained in:
parent
2a7fd4563a
commit
6090866f7b
@ -36,7 +36,7 @@ def find_executable(executable, path=None):
|
||||
# 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'):
|
||||
if args[0].endswith('ccache') or args[0].endswith('gomacc'):
|
||||
args = args[1:]
|
||||
|
||||
path = find_executable(args[0])
|
||||
|
Loading…
x
Reference in New Issue
Block a user