mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Added GCC -pipe and changed optimization to -O2
This commit is contained in:
parent
079db8d234
commit
edd2331b40
@ -95,16 +95,16 @@ type $CC >> "$DIR/install.log" 2>&1 || { echo >&2 "[ERROR] Please install \"$CC\
|
|||||||
[ -z "$CFLAGS" ] && CFLAGS="";
|
[ -z "$CFLAGS" ] && CFLAGS="";
|
||||||
[ -z "$CONFIGURE_FLAGS" ] && CONFIGURE_FLAGS="";
|
[ -z "$CONFIGURE_FLAGS" ] && CONFIGURE_FLAGS="";
|
||||||
|
|
||||||
$CC -O3 -march=$march -mtune=$mtune -fno-gcse $CFLAGS -Q --help=target >> "$DIR/install.log" 2>&1
|
$CC -O2 -pipe -march=$march -mtune=$mtune -fno-gcse $CFLAGS -Q --help=target >> "$DIR/install.log" 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
$CC -O3 -fno-gcse $CFLAGS -Q --help=target >> "$DIR/install.log" 2>&1
|
$CC -O2 -fno-gcse $CFLAGS -Q --help=target >> "$DIR/install.log" 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
export CFLAGS="-O3 -fno-gcse "
|
export CFLAGS="-O2 -fno-gcse "
|
||||||
else
|
else
|
||||||
export CFLAGS="-O3 -fno-gcse $CFLAGS"
|
export CFLAGS="-O2 -fno-gcse $CFLAGS"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
export CFLAGS="-O3 -march=$march -mtune=$mtune -fno-gcse $CFLAGS"
|
export CFLAGS="-O2 -pipe -march=$march -mtune=$mtune -fno-gcse $CFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user