[Lunar-commits] <moonbase-core> gcc: Sane defaults when optimization.* file doesn't exist
Stefan Wold
ratler at lunar-linux.org
Sun Nov 24 19:00:08 CET 2013
commit 9800f37638cc3731ecf35efa984f57446654ca9e
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 23 Nov 2013 12:17:50 -0800
URL: https://github.com/lunar-linux/moonbase-core/commit/9800f37638cc3731ecf35efa984f57446654ca9e
gcc: Sane defaults when optimization.* file doesn't exist
This also allow us to fiddle less with our iso build tools
everytime the compiler etc is bumped.
Yes, we default to i686 or x86-64 for the CPU, since that's what
we use iwhen building the ISO.
---
compilers/gcc/plugin.d/optimize-gcc_4_8.plugin | +7/-1
1 file changed, 7 insertions(+), 1 deletion(-)
--- a/compilers/gcc/plugin.d/optimize-gcc_4_8.plugin
+++ b/compilers/gcc/plugin.d/optimize-gcc_4_8.plugin
@@ -9,8 +9,9 @@ plugin_compiler_gcc_4_8_optimize()
fi
# default optimizations
- BOPT=Fast
+ BOPT=Faster
CC_OPTS=( Pipe Fortify )
+ CPU=$(arch | sed 's;_;-;')
debug_msg "plugin_compiler_gcc_4_8_optimize($@)"
if [ -f /etc/lunar/local/optimizations.GCC_4_8 ]; then
@@ -216,6 +217,11 @@ EOF
if [ -f /etc/lunar/local/optimizations.GCC_4_8 ]; then
. /etc/lunar/local/optimizations.GCC_4_8
+ else
+ # default optimizations
+ BOPT=Faster
+ CC_OPTS=( Pipe Fortify )
+ CPU=$(arch | sed 's;_;-;')
fi
export IFS=$'\t\n'
More information about the Lunar-commits
mailing list