diff options
author | 2016-10-17 13:07:56 -0400 | |
---|---|---|
committer | 2016-10-17 17:59:46 +0000 | |
commit | 5bab65ba33bd3f313e6120f5c8468de07bb21be8 (patch) | |
tree | ddd40918acb4655713e50e6fed2b120d68a7c667 /infra/bots/recipe_modules/flavor/default_flavor.py | |
parent | 4320657fd08e381be1750831bd3ac8c3bd0cb327 (diff) |
Switch Windows ANGLE bots to GN.
CQ_INCLUDE_TRYBOTS=master.client.skia.compile:Build-Win-MSVC-x86-Debug-ANGLE-Trybot;master.client.skia:Test-Win-MSVC-ShuttleC-GPU-GTX960-x86_64-Release-ANGLE-Trybot
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3539
Change-Id: I076c4c5972344b6688d648a8ea5e5618e87fd88d
Reviewed-on: https://skia-review.googlesource.com/3539
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'infra/bots/recipe_modules/flavor/default_flavor.py')
-rw-r--r-- | infra/bots/recipe_modules/flavor/default_flavor.py | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/infra/bots/recipe_modules/flavor/default_flavor.py b/infra/bots/recipe_modules/flavor/default_flavor.py index 64f35f12ce..9b148f4daf 100644 --- a/infra/bots/recipe_modules/flavor/default_flavor.py +++ b/infra/bots/recipe_modules/flavor/default_flavor.py @@ -104,41 +104,16 @@ class DefaultFlavorUtils(object): """Path to a checkout of Chrome on this machine.""" return self._win_toolchain_dir.join('src') - def bootstrap_win_toolchain(self): - """Run bootstrapping script for the Windows toolchain.""" - bootstrap_script = self.m.vars.infrabots_dir.join( - 'bootstrap_win_toolchain_json.py') - win_toolchain_json = self._win_toolchain_dir.join( - 'src', 'build', 'win_toolchain.json') - self.m.python( - 'bootstrap win toolchain', - script=bootstrap_script, - args=['--win_toolchain_json', win_toolchain_json, - '--depot_tools_parent_dir', - self._win_toolchain_dir]) - def compile(self, target, **kwargs): """Build the given target.""" env = kwargs.pop('env', {}) # The CHROME_PATH environment variable is needed for builders that use # toolchains downloaded by Chrome. env['CHROME_PATH'] = self.chrome_path - if self.m.platform.is_win: - make_cmd = ['python', 'make.py'] - self.m.run.run_once(self.bootstrap_win_toolchain) - else: - make_cmd = ['make'] + make_cmd = ['make'] cmd = make_cmd + [target] - try: - self.m.run(self.m.step, 'build %s' % target, cmd=cmd, - env=env, cwd=self.m.path['checkout'], **kwargs) - except self.m.step.StepFailure: - if self.m.platform.is_win: - # The linker occasionally crashes on Windows. Try again. - self.m.run(self.m.step, 'build %s' % target, cmd=cmd, - env=env, cwd=self.m.path['checkout'], **kwargs) - else: - raise + self.m.run(self.m.step, 'build %s' % target, cmd=cmd, + env=env, cwd=self.m.path['checkout'], **kwargs) def copy_extra_build_products(self, swarming_out_dir): pass |