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

Unified Diff: tools/bisect-perf-regression.py

Issue 287063004: Fix ninja build_type for Android builder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bisect-perf-regression.py
diff --git a/tools/bisect-perf-regression.py b/tools/bisect-perf-regression.py
index 2a921b843ce7139a655bf9a20d5afd66f7edff43..e5a615e68d332232fc042eafc00c1192568d224b 100755
--- a/tools/bisect-perf-regression.py
+++ b/tools/bisect-perf-regression.py
@@ -654,7 +654,7 @@ def SetBuildSystemDefault(build_system):
raise RuntimeError('%s build not supported.' % build_system)
-def BuildWithMake(threads, targets, build_type):
+def BuildWithMake(threads, targets, build_type='Release'):
cmd = ['make', 'BUILDTYPE=%s' % build_type]
if threads:
@@ -667,7 +667,7 @@ def BuildWithMake(threads, targets, build_type):
return not return_code
-def BuildWithNinja(threads, targets, build_type):
+def BuildWithNinja(threads, targets, build_type='Release'):
cmd = ['ninja', '-C', os.path.join('out', build_type)]
if threads:
@@ -680,7 +680,7 @@ def BuildWithNinja(threads, targets, build_type):
return not return_code
-def BuildWithVisualStudio(targets, build_type):
+def BuildWithVisualStudio(targets, build_type='Release'):
shatch 2014/05/15 22:43:52 Since we're repeating 'Release' all over, should t
prasadv 2014/05/15 23:14:32 I think, target_build_type flag is by default set
shatch 2014/05/15 23:34:29 Sorry, I was a bit unclear, more just meant maybe
path_to_devenv = os.path.abspath(
os.path.join(os.environ['VS100COMNTOOLS'], '..', 'IDE', 'devenv.com'))
path_to_sln = os.path.join(os.getcwd(), 'chrome', 'chrome.sln')
@@ -847,7 +847,8 @@ class AndroidBuilder(Builder):
build_success = False
if opts.build_preference == 'ninja':
- build_success = BuildWithNinja(threads, self._GetTargets())
+ build_success = BuildWithNinja(
+ threads, self._GetTargets(), opts.target_build_type)
else:
assert False, 'No build system defined.'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698