What flags for either gcc or clang will improve compile times? I require debugging to be enabled but any other features are free to be disabled if they will result in faster compiles.
I know there are numerous other ways to improve compile times but I am interested soley in this area.
The largest gain in compile time is found by eliminating the most work done by the compiler - usually optimisation. So, don't enable optimisation (-O
) flags.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With