From c8f47cc52b04cee14f4956bd1196e224244ba848 Mon Sep 17 00:00:00 2001 From: SpinDizzy Date: Wed, 30 Dec 2020 16:05:25 +0000 Subject: [PATCH] - Add -O3 optimization option for OSX and Linux. - Revert netboard to disable by default. --- Makefiles/Makefile.OSX | 2 +- Makefiles/Makefile.UNIX | 2 +- Makefiles/Options.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefiles/Makefile.OSX b/Makefiles/Makefile.OSX index 30a90e1..faae55e 100644 --- a/Makefiles/Makefile.OSX +++ b/Makefiles/Makefile.OSX @@ -66,7 +66,7 @@ endif # OSX-specific # -PLATFORM_CXXFLAGS = $(SDL_CFLAGS) -DSUPERMODEL_OSX -F/Library/Frameworks/ +PLATFORM_CXXFLAGS = $(SDL_CFLAGS) -DSUPERMODEL_OSX -F/Library/Frameworks/ -O3 PLATFORM_LDFLAGS = $(SDL_LIBS) -lz -lm -lstdc++ -F/Library/Frameworks/ diff --git a/Makefiles/Makefile.UNIX b/Makefiles/Makefile.UNIX index dd7872a..5df12f5 100644 --- a/Makefiles/Makefile.UNIX +++ b/Makefiles/Makefile.UNIX @@ -63,7 +63,7 @@ SDL2_LIBS = `sdl2-config --libs` # UNIX-specific # -PLATFORM_CXXFLAGS = $(SDL2_CFLAGS) -Ofast +PLATFORM_CXXFLAGS = $(SDL2_CFLAGS) -O3 PLATFORM_LDFLAGS = $(SDL2_LIBS) -lGL -lGLU -lz -lm -lstdc++ -lpthread -lSDL2_net diff --git a/Makefiles/Options.inc b/Makefiles/Options.inc index b673941..f5761af 100644 --- a/Makefiles/Options.inc +++ b/Makefiles/Options.inc @@ -54,7 +54,7 @@ endif # # Enable support for Model3 Net Board emulation # -NET_BOARD = 1 +NET_BOARD = ifneq ($(filter $(strip $(NET_BOARD)),0 1),$(strip $(NET_BOARD))) override NET_BOARD = endif