mirror of https://github.com/OpenTTD/OpenTTD
(svn r1671) Remove WARNING_DISPLAY, because it contained no warning, but an optimization flag
parent
3276c46c72
commit
85248d7850
13
Makefile
13
Makefile
|
@ -57,7 +57,6 @@
|
||||||
# MANUAL_CONFIG: do not use Makefile.config, config options set manually
|
# MANUAL_CONFIG: do not use Makefile.config, config options set manually
|
||||||
# DEBUG: build in debug mode
|
# DEBUG: build in debug mode
|
||||||
# PROFILE: build in profile mode, disables -s and -fomit-frame-pointer
|
# PROFILE: build in profile mode, disables -s and -fomit-frame-pointer
|
||||||
# DISPLAY_WARNINGS: when off, some errors are not displayed while compiling
|
|
||||||
# TRANSLATOR: build in translator mode (untranslated strings are prepended by
|
# TRANSLATOR: build in translator mode (untranslated strings are prepended by
|
||||||
# a <TODO> mark)
|
# a <TODO> mark)
|
||||||
# RELEASE: this will be the released version number. It replaces all places
|
# RELEASE: this will be the released version number. It replaces all places
|
||||||
|
@ -174,12 +173,6 @@ ENABLE_NETWORK:=1
|
||||||
-include $(LIB_DETECTION)
|
-include $(LIB_DETECTION)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef DISPLAY_WARNINGS
|
|
||||||
WARNING_DISPLAY:=-fstrict-aliasing
|
|
||||||
else
|
|
||||||
WARNING_DISPLAY:=-fno-strict-aliasing
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef SUPRESS_LANG_ERRORS
|
ifdef SUPRESS_LANG_ERRORS
|
||||||
LANG_ERRORS = >/dev/null 2>&1
|
LANG_ERRORS = >/dev/null 2>&1
|
||||||
endif
|
endif
|
||||||
|
@ -314,12 +307,12 @@ endif
|
||||||
|
|
||||||
ifdef OSX
|
ifdef OSX
|
||||||
# these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
|
# these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
|
||||||
BASECFLAGS += -O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic -mpowerpc-gpopt -force_cpusubtype_ALL $(WARNING_DISPLAY)
|
BASECFLAGS += -O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic -mpowerpc-gpopt -force_cpusubtype_ALL
|
||||||
else
|
else
|
||||||
ifdef MORPHOS
|
ifdef MORPHOS
|
||||||
BASECFLAGS += -O3 -funroll-loops -fexpensive-optimizations -mstring -mmultiple $(WARNING_DISPLAY)
|
BASECFLAGS += -O3 -funroll-loops -fexpensive-optimizations -mstring -mmultiple
|
||||||
else
|
else
|
||||||
BASECFLAGS += -O2 $(WARNING_DISPLAY)
|
BASECFLAGS += -O2
|
||||||
endif
|
endif
|
||||||
ifndef PROFILE
|
ifndef PROFILE
|
||||||
BASECFLAGS += -fomit-frame-pointer
|
BASECFLAGS += -fomit-frame-pointer
|
||||||
|
|
Loading…
Reference in New Issue