mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Modified compile.sh
This commit is contained in:
parent
099716920b
commit
19d98869fd
@ -77,7 +77,7 @@ while getopts "t:oj:cxf::" OPTION; do
|
|||||||
echo "[opt] Enabling abusive optimizations..."
|
echo "[opt] Enabling abusive optimizations..."
|
||||||
DO_OPTIMIZE="yes"
|
DO_OPTIMIZE="yes"
|
||||||
ffast_math="-fno-math-errno -funsafe-math-optimizations -fno-trapping-math -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range" #workaround SQLite3 fail
|
ffast_math="-fno-math-errno -funsafe-math-optimizations -fno-trapping-math -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range" #workaround SQLite3 fail
|
||||||
CFLAGS="$CFLAGS -O2 -DSQLITE_HAVE_ISNAN $ffast_math -fno-signed-zeros -finline-functions -funsafe-loop-optimizations -fomit-frame-pointer -frename-registers -funroll-loops -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -ftracer -ftree-loop-im -fprefetch-loop-arrays -ftree-parallelize-loops=4 -fomit-frame-pointer"
|
CFLAGS="$CFLAGS -O2 -DSQLITE_HAVE_ISNAN $ffast_math -fno-signed-zeros -finline-functions -funsafe-loop-optimizations -fomit-frame-pointer -frename-registers -funroll-loops -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -ftracer -ftree-loop-im -ftree-parallelize-loops=4 -fomit-frame-pointer"
|
||||||
if [ "$OPTARG" == "arm" ]; then
|
if [ "$OPTARG" == "arm" ]; then
|
||||||
CFLAGS="$CFLAGS -mfloat-abi=softfp -mfpu=vfp"
|
CFLAGS="$CFLAGS -mfloat-abi=softfp -mfpu=vfp"
|
||||||
elif [ "$OPTARG" == "x86_64" ]; then
|
elif [ "$OPTARG" == "x86_64" ]; then
|
||||||
@ -169,7 +169,7 @@ elif [ "$COMPILE_TARGET" == "rpi" ]; then
|
|||||||
elif [ "$COMPILE_TARGET" == "mac" ] || [ "$COMPILE_TARGET" == "mac32" ]; then
|
elif [ "$COMPILE_TARGET" == "mac" ] || [ "$COMPILE_TARGET" == "mac32" ]; then
|
||||||
[ -z "$march" ] && march=prescott;
|
[ -z "$march" ] && march=prescott;
|
||||||
[ -z "$mtune" ] && mtune=generic;
|
[ -z "$mtune" ] && mtune=generic;
|
||||||
[ -z "$CFLAGS" ] && CFLAGS="-m32 -arch i386 -fomit-frame-pointer -mmacosx-version-min=10.5";
|
[ -z "$CFLAGS" ] && CFLAGS="-m32 -arch i686 -fomit-frame-pointer -mmacosx-version-min=10.5";
|
||||||
[ -z "$LDFLAGS" ] && LDFLAGS="-Wl,-rpath,@loader_path/../lib";
|
[ -z "$LDFLAGS" ] && LDFLAGS="-Wl,-rpath,@loader_path/../lib";
|
||||||
export DYLD_LIBRARY_PATH="@loader_path/../lib"
|
export DYLD_LIBRARY_PATH="@loader_path/../lib"
|
||||||
OPENSSL_TARGET="darwin-i386-cc"
|
OPENSSL_TARGET="darwin-i386-cc"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user