]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
more heavily optimize ./all compile -r builds
authorRudolf Polzer <divverent@alientrap.org>
Wed, 13 Oct 2010 19:42:31 +0000 (21:42 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 13 Oct 2010 19:42:31 +0000 (21:42 +0200)
all

diff --git a/all b/all
index fea01c2c5411a6ec4599b8ff5551e39bd82a093d..df0b06b1ccfec2ef94631e5ff608ef772acf2938 100755 (executable)
--- a/all
+++ b/all
@@ -577,6 +577,9 @@ case "$cmd" in
                cleanqcc=false
                cleanqc=false
                debug=debug
+               if [ -z "$CC" ]; then
+                       export CC="gcc -DSUPPORTIPV6"
+               fi
                while :; do
                        case "$1" in
                                -c)
@@ -587,6 +590,7 @@ case "$cmd" in
                                        ;;
                                -r)
                                        debug=release
+                                       export CC="$CC -mtune=native -march=native"
                                        shift
                                        ;;
                                *)
@@ -594,9 +598,6 @@ case "$cmd" in
                                        ;;
                        esac
                done
-               if [ -z "$CC" ]; then
-                       export CC="gcc -DSUPPORTIPV6"
-               fi
                if [ -n "$WE_HATE_OUR_USERS" ]; then
                        TARGETS="sv-$debug cl-$debug"
                elif [ x"`uname`" = x"Darwin" ]; then