summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-03-26 20:19:14 +0000
committerReid Kleckner <rnk@google.com>2018-03-26 20:19:14 +0000
commit2fe905cfee858d6762631c2ffc44214de0e6126d (patch)
tree93db4221a2938131f660004cada8ab5ae3a9891f /llvm
parentb391288af7d732bcd8ca77bff5fae63886fe1033 (diff)
downloadbcm5719-llvm-2fe905cfee858d6762631c2ffc44214de0e6126d.tar.gz
bcm5719-llvm-2fe905cfee858d6762631c2ffc44214de0e6126d.zip
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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Bindings/Go/lit.local.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Bindings/Go/lit.local.cfg b/llvm/test/Bindings/Go/lit.local.cfg
index a587f88f54a..3021fc64a75 100644
--- a/llvm/test/Bindings/Go/lit.local.cfg
+++ b/llvm/test/Bindings/Go/lit.local.cfg
@@ -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])
OpenPOWER on IntegriCloud