|
Boost-Build : |
Subject: Re: [Boost-build] Choice of optimization flags for GCC
From: Brad Howes (howes_at_[hidden])
Date: 2008-09-09 12:33:00
On Sep 9, 2008, at 11:45 AM, David Abrahams wrote:
> Yes, but then we have another problem: the gcc documentation says that
> you should only use one -Ox option on the command-line, and we have no
> way to avoid producing command lines containing one of the values -O0
> -O3 or -Os.
From http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Optimize-Options.html#Optimize-Options
If you use multiple -O options, with or without level numbers,
the last such option is the one that is effective.
I assume it works since I rely on that to keep my release builds at -O2.
Brad
-- Brad Howes Group 42 MIT Lincoln Laboratory 244 Wood St. Lexington, MA 02173 Phone: 781.981.5292 Fax: 781.981.3495 Secretary: 781.981.7420
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk