| Index: infra/bots/recipe_modules/skia/gn_flavor.py
|
| diff --git a/infra/bots/recipe_modules/skia/gn_flavor.py b/infra/bots/recipe_modules/skia/gn_flavor.py
|
| index d7fa86c77f3836763d6fea0615520c68e7102538..cdb26e0631f9b192d891fc6f540047859d7a0b11 100644
|
| --- a/infra/bots/recipe_modules/skia/gn_flavor.py
|
| +++ b/infra/bots/recipe_modules/skia/gn_flavor.py
|
| @@ -18,6 +18,18 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils):
|
| is_debug = 'is_debug=false'
|
| gn_args = [is_debug]
|
|
|
| + cc, cxx = 'cc', 'c++'
|
| + if 'Clang' in self._skia_api.builder_name:
|
| + cc, cxx = 'clang', 'clang++'
|
| + elif 'GCC' in self._skia_api.builder_name:
|
| + cc, cxx = 'gcc', 'g++'
|
| +
|
| + ccache = self._skia_api.ccache()
|
| + if ccache:
|
| + cc, cxx = '"%s %s"' % (ccache, cc), '"%s %s"' % (ccache, cxx)
|
| +
|
| + gn_args += [ 'cc=' + cc, 'cxx=' + cxx ]
|
| +
|
| # Run gn gen.
|
| gn_exe = 'gn'
|
| if self._skia_api.m.platform.is_win:
|
|
|