skia2/infra/bots/recipes
mtklein 8079ba688c GN: add extra_cflags et al.
Adding flags to the end of cc or cxx is pretty useful, but these always end up
on the command line before the GN generated flags, thus setting defaults that
GN will override.

For full flexibility we want to be able to add flags after the flags GN has
added, so that custom flags can override _it_.

I've updated the Fast bots with an example here: if we said cc="clang -O3 ...",
that '-O3' would be overriden later by the default Release-mode '-Os'.  By
putting it in extra_cflags, we get the last word: our '-O3' overrides the
default '-Os'.

Another good use case is a hypothetical Actually-Shippable-Release mode.  Our
Release mode bundles in tons of debug symbols via '-g'.  libskia.a is about 10x
larger than it needs to be when built that way, but it helps us debug the bot
failures immensely.  To build a libskia.{a,so} that you'd really ship, you can
now set extra_cflags="-g0" to override '-g'.  You could set '-march' flags there
too, '-fomit-frame-pointer', etc.

There are lots of flags that won't matter where they end up in the command line.
To keep everything simple I've put them in extra_cflags with the rest.  This means
the only time we change 'cc' or 'cxx' in our recipes is to prefix 'ccache'.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2241263003

Review-Url: https://codereview.chromium.org/2241263003
2016-08-16 09:31:16 -07:00
..
swarm_compile.expected GN: add extra_cflags et al. 2016-08-16 09:31:16 -07:00
swarm_ct_skps.expected Move ct_skps recipe from tools repo to Skia repo. 2016-08-09 13:46:48 -07:00
swarm_housekeeper.expected Add extracting GM comments to the housekeeper bot. 2016-08-12 08:50:29 -07:00
swarm_perf.expected Use SVGs CIPD package and use SVG as a DM source. 2016-08-11 12:36:58 -07:00
swarm_RecreateSKPs.expected [recipes] Remove build environment vars from default_env 2016-08-05 05:18:06 -07:00
swarm_test.expected Disable Nebraska-StateSeal.svg on Win8 bots 2016-08-16 07:08:48 -07:00
swarm_trigger.expected Increase hard and io timeouts for CT builds. 2016-08-15 09:54:56 -07:00
swarmbucket_wrapper.expected Add swarmbucket_wrapper recipe 2016-07-28 10:50:54 -07:00
swarm_compile.py [recipes] Increase test coverage 2016-08-05 06:30:10 -07:00
swarm_ct_skps.py Move ct_skps recipe from tools repo to Skia repo. 2016-08-09 13:46:48 -07:00
swarm_housekeeper.py Add extracting GM comments to the housekeeper bot. 2016-08-12 08:50:29 -07:00
swarm_perf.py Use SVGs CIPD package and use SVG as a DM source. 2016-08-11 12:36:58 -07:00
swarm_RecreateSKPs.py Re-organize Skia recipes 2016-08-03 08:23:10 -07:00
swarm_test.py Disable Nebraska-StateSeal.svg on Win8 bots 2016-08-16 07:08:48 -07:00
swarm_trigger.py Increase hard and io timeouts for CT builds. 2016-08-15 09:54:56 -07:00
swarmbucket_wrapper.py Add swarmbucket_wrapper recipe 2016-07-28 10:50:54 -07:00