[llvm] r328580 - Fix go bindings test when using goma distributed build tool

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 26 13:19:14 PDT 2018


Author: rnk
Date: Mon Mar 26 13:19:14 2018
New Revision: 328580

URL: http://llvm.org/viewvc/llvm-project?rev=328580&view=rev
Log:
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/

Modified:
    llvm/trunk/test/Bindings/Go/lit.local.cfg

Modified: llvm/trunk/test/Bindings/Go/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bindings/Go/lit.local.cfg?rev=328580&r1=328579&r2=328580&view=diff
==============================================================================
--- llvm/trunk/test/Bindings/Go/lit.local.cfg (original)
+++ llvm/trunk/test/Bindings/Go/lit.local.cfg Mon Mar 26 13:19:14 2018
@@ -36,7 +36,7 @@ def find_executable(executable, path=Non
 # 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])




More information about the llvm-commits mailing list