fix(profiles): Move CFLAGS, remove -g, add -mtune=generic

Slowly moving make.conf into profiles, here is another piece. We never
actually use the built debug information so remove -g to produce a
little less of it. Add -mtune=generic to let GCC optimize for whatever
it thinks the most common processors are.
This commit is contained in:
Michael Marineau 2014-05-16 00:04:46 -04:00
parent 32e1c7f306
commit 8e93e04deb
3 changed files with 6 additions and 7 deletions

View File

@ -8,12 +8,5 @@ source make.conf.board_setup
# Common settings across all board targets.
source make.conf.common
# Recommended MARCH_TUNE, CFLAGS, etc.
MARCH_TUNE=""
# Allow a board to override or define additional settings.
CFLAGS="-O2 -pipe ${MARCH_TUNE} -g"
CXXFLAGS="${CFLAGS}"
# Allow the user to override or define additional settings.
source make.conf.user

View File

@ -0,0 +1,3 @@
# Enable optimizations for common x86_64 CPUs
CFLAGS="-O2 -pipe -mtune=generic"
CXXFLAGS="${CFLAGS}"

View File

@ -0,0 +1,3 @@
# Enable optimizations for common x86_64 CPUs
CFLAGS="-O2 -pipe -mtune=generic"
CXXFLAGS="${CFLAGS}"