Use O2 on stage1 for faster overall build times with make.
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>
Thu, 24 Jan 2019 19:20:39 +0000 (20:20 +0100)
committerBen Gamari <ben@smart-cactus.org>
Thu, 31 Jan 2019 17:46:51 +0000 (12:46 -0500)
commit92c7e70ff3135b79485be2d36cfac3d2441c29df
tree2782daf45a76ebce0d63d8aa52228d17d77ad7e6
parent0593e9389c4e5fd4386ebd74a746ef9659401ac6
Use O2 on stage1 for faster overall build times with make.

Build times when using the quick flavour:

stage1 opt | time (wall) | time (user)
     -O1   |        13m  |        53m
     -O2   |        13m  |        51m
So even when we compile stage2 with -O0 (quick)
using -O2 on stage1 is already faster.

The difference is even bigger when freezing
stage1 and doing multiple builds or compiling
stage2 with optimizations.
mk/flavours/bench-cross-ncg.mk
mk/flavours/bench.mk
mk/flavours/devel2.mk
mk/flavours/perf.mk
mk/flavours/prof.mk
mk/flavours/quick-cross-ncg.mk
mk/flavours/quick.mk
mk/flavours/quickest.mk
mk/flavours/validate.mk