Use O2 on stage1 for faster overall build times with make.

Authored by AndreasK on Jan 24 2019, 1:20 PM.

Description

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.

Details

Committed
bgamariJan 31 2019, 11:46 AM
Parents
rGHC0593e9389c4e: Add -fdefer-diagnostics to defer and group diagnostic messages in make-mode
Branches
Unknown
Tags
Unknown