is_debug = 'is_debug=false'
gn_args = [is_debug]
+ is_clang = 'Clang' in self._skia_api.builder_name
+ is_gcc = 'GCC' in self._skia_api.builder_name
+
cc, cxx = 'cc', 'c++'
- if 'Clang' in self._skia_api.builder_name:
+ if is_clang:
cc, cxx = 'clang', 'clang++'
- elif 'GCC' in self._skia_api.builder_name:
+ elif is_gcc:
cc, cxx = 'gcc', 'g++'
ccache = self._skia_api.ccache()
if ccache:
cc, cxx = '%s %s' % (ccache, cc), '%s %s' % (ccache, cxx)
+ if is_clang:
+ # Stifle "argument unused during compilation: ..." warnings.
+ stifle = '-Qunused-arguments'
+ cc, cxx = '%s %s' % (cc, stifle), '%s %s' % (cxx, stifle)
gn_args += [ 'cc="%s"' % cc, 'cxx="%s"' % cxx ]
"gn",
"gen",
"[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-Clang-x86_64-Debug-GN/Debug",
- "--args=is_debug=true cc=\"/usr/bin/ccache clang\" cxx=\"/usr/bin/ccache clang++\""
+ "--args=is_debug=true cc=\"/usr/bin/ccache clang -Qunused-arguments\" cxx=\"/usr/bin/ccache clang++ -Qunused-arguments\""
],
"cwd": "[CUSTOM_/_B_WORK]/skia",
"env": {