]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
Merge branch 'master' into divVerent/crypto2
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 4a39eed57fd55f1fb12ccc9fc49bff64b8476697..70309e057b6d2592dc5973043897ab030a7a19e3 100755 (executable)
--- a/all
+++ b/all
@@ -579,6 +579,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)
@@ -590,6 +593,7 @@ case "$cmd" in
                                        ;;
                                -r)
                                        debug=release
+                                       export CC="$CC -mtune=native -march=native"
                                        shift
                                        ;;
                                *)
@@ -597,9 +601,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