Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: scripts/slave/recipes/chromium_codesearch.py

Issue 2332283002: Use [CACHE]/cipd/goma for goma_dir in recipes/chromium_codesearch.py (Closed)
Patch Set: set goma_dir Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium_codesearch.expected/full_ChromiumOS_Codesearch.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipes/chromium_codesearch.py
diff --git a/scripts/slave/recipes/chromium_codesearch.py b/scripts/slave/recipes/chromium_codesearch.py
index 6fcb3e29366914cf39e78312408945b4802c5782..204f3f7b6c3f0c483218f82e90ccfffef0cb4836 100644
--- a/scripts/slave/recipes/chromium_codesearch.py
+++ b/scripts/slave/recipes/chromium_codesearch.py
@@ -45,10 +45,8 @@ LINUX_GN_ARGS = [
'is_clang=true',
'is_component_build=true',
'is_debug=true',
- 'goma_dir="/b/build/goma"',
'symbol_level=1',
'target_cpu="x64"',
- 'use_goma=true',
]
CHROMEOS_GN_ARGS = LINUX_GN_ARGS + [
@@ -103,6 +101,10 @@ def GenerateCompilationDatabase(api, debug_path, targets, platform):
# adjusted.
gn_path = api.path['checkout'].join('buildtools', 'linux64', 'gn')
args = LINUX_GN_ARGS if platform == 'linux' else CHROMEOS_GN_ARGS
+ if (hasattr(api.chromium.c.compile_py, 'goma_dir') and
Paweł Hajdan Jr. 2016/09/19 23:19:33 Why do we have this weird auto-detection? Don't we
Yoshisato Yanagisawa 2016/09/20 01:35:37 From the modularity view point, I suggested to do
dsansome-google 2016/09/20 04:21:43 Checking for the presence of an attribute seems li
tikuta 2016/09/20 05:22:08 OK. let me remove this if statement. assertion occ
+ api.chromium.c.compile_py.goma_dir):
+ args.extend(['use_goma=true',
+ 'goma_dir=%s' % api.chromium.c.compile_py.goma_dir])
command = [gn_path, 'gen', debug_path, '--args=%s' % ' '.join(args)]
api.step('generate build files for %s' % platform, command,
cwd=api.path['checkout'])
@@ -140,6 +142,7 @@ def RunSteps(api):
debug_path = api.path['checkout'].join('out', 'Debug')
targets = bot_config.get('compile_targets', [])
api.chromium.set_config('codesearch', BUILD_CONFIG='Debug')
+ api.chromium.ensure_goma()
api.chromium.runhooks()
result = GenerateCompilationDatabase(api, debug_path, targets, platform)
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium_codesearch.expected/full_ChromiumOS_Codesearch.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698