summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-11-27 08:19:12 +0100
committerAlexander Harkness <bearbin@gmail.com>2013-11-27 08:19:12 +0100
commit83d582d083c92e51a85fa825907493aebb866af7 (patch)
tree3dca7360b00efb97380d938e55076d682fbaba82
parentMakefile fix (diff)
downloadcuberite-83d582d083c92e51a85fa825907493aebb866af7.tar
cuberite-83d582d083c92e51a85fa825907493aebb866af7.tar.gz
cuberite-83d582d083c92e51a85fa825907493aebb866af7.tar.bz2
cuberite-83d582d083c92e51a85fa825907493aebb866af7.tar.lz
cuberite-83d582d083c92e51a85fa825907493aebb866af7.tar.xz
cuberite-83d582d083c92e51a85fa825907493aebb866af7.tar.zst
cuberite-83d582d083c92e51a85fa825907493aebb866af7.zip
-rw-r--r--GNUmakefile29
1 files changed, 7 insertions, 22 deletions
diff --git a/GNUmakefile b/GNUmakefile
index f36ffe8bb..a963da098 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -47,15 +47,10 @@ ifeq ($(release),1)
# release build - fastest run-time, no gdb support
################
-ifeq ($(disableofast),1)
- CC_OPTIONS = -g -O3 -DNDEBUG
- CXX_OPTIONS = -g -O3 -DNDEBUG
- LNK_OPTIONS = -pthread -O3
-else
- CC_OPTIONS = -g -Ofast -DNDEBUG
- CXX_OPTIONS = -g -Ofast -DNDEBUG
- LNK_OPTIONS = -pthread -Ofast
-endif
+CC_OPTIONS = -g -O3 -DNDEBUG
+CXX_OPTIONS = -g -O3 -DNDEBUG
+LNK_OPTIONS = -pthread -O3
+
BUILDDIR = build/release/
else
@@ -64,15 +59,9 @@ ifeq ($(profile),1)
# profile build - a release build with symbols and profiling engine built in
################
-ifeq ($(disableofast),1)
- CC_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
- CXX_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
- LNK_OPTIONS = -pthread -ggdb -O3 -pg
-else
- CC_OPTIONS = -s -g -ggdb -Ofast -pg -DNDEBUG
- CXX_OPTIONS = -s -g -ggdb -Ofast -pg -DNDEBUG
- LNK_OPTIONS = -pthread -ggdb -Ofast -pg
-endif
+CC_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
+CXX_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
+LNK_OPTIONS = -pthread -ggdb -O3 -pg
BUILDDIR = build/profile/
@@ -82,11 +71,7 @@ else
# Since C code is used only for supporting libraries (zlib, lua), it is still Ofast-optimized
################
-ifeq ($(disableofast),1)
CC_OPTIONS = -s -ggdb -g -D_DEBUG -O3
-else
- CC_OPTIONS = -s -ggdb -g -D_DEBUG -Ofast
-endif
CXX_OPTIONS = -s -ggdb -g -D_DEBUG -Og
LNK_OPTIONS = -pthread -g -ggdb -Og