commit 5f267f2ff206966f53660f5b887c68875de93325
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Fri Apr 15 16:43:20 2022 -0600
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Fri Apr 15 16:43:20 2022 -0600
Turn off exceptions on older platforms
---
platform/3ds/Makefile | 2 +-
platform/SDL2Desktop/Makefile | 2 +-
platform/switch/Makefile | 2 +-
platform/vita/Makefile | 2 +-
platform/windows/Makefile | 2 +-
test/Makefile | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/platform/3ds/Makefile b/platform/3ds/Makefile
index 4043116..dadcdea 100644
--- a/platform/3ds/Makefile
+++ b/platform/3ds/Makefile
@@ -75,7 +75,7 @@ CFLAGS += $(INCLUDE) -DARM11 -D_3DS -DVER_STR=\"$(APP_VERSION)\"
# enable pack in games with this platform
# CFLAGS += -DLOAD_PACK_INS
-CXXFLAGS := $(CFLAGS) -fno-rtti -fexceptions -std=gnu++17
+CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17
ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
diff --git a/platform/SDL2Desktop/Makefile b/platform/SDL2Desktop/Makefile
index d31a594..13892b0 100644
--- a/platform/SDL2Desktop/Makefile
+++ b/platform/SDL2Desktop/Makefile
@@ -21,7 +21,7 @@ CFLAGS := -g -Wall -Wno-deprecated -ffunction-sections -std=c++17 \
CFLAGS += $(INCLUDE) -DVER_STR=\"$(APP_VERSION)\"
-CXXFLAGS := $(CFLAGS) -fno-rtti -fexceptions
+CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
#-std=gnu++11 was used before... not sure of difference
LIBS := -lSDL2
diff --git a/platform/switch/Makefile b/platform/switch/Makefile
index 050607b..f55f295 100644
--- a/platform/switch/Makefile
+++ b/platform/switch/Makefile
@@ -55,7 +55,7 @@ CFLAGS := -g -Wall -O2 -ffunction-sections -DVER_STR=\"$(APP_VERSION)\" \
CFLAGS += $(INCLUDE) -D__SWITCH__
-CXXFLAGS := $(CFLAGS) -fno-rtti -fexceptions -std=gnu++17
+CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17
ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
diff --git a/platform/vita/Makefile b/platform/vita/Makefile
index 2819a93..7cbf7eb 100644
--- a/platform/vita/Makefile
+++ b/platform/vita/Makefile
@@ -25,7 +25,7 @@ CC = $(PREFIX)-gcc
CXX = $(PREFIX)-g++
STRIP := $(PREFIX)-strip
CFLAGS = -g -Wl,-q -O2 -ftree-vectorize -D__VITA__ -DMINIZ_NO_TIME -DVER_STR=\"$(APP_VERSION)\" $(INCLUDE)
-CXXFLAGS = $(CFLAGS) -fexceptions -std=gnu++17 -fpermissive
+CXXFLAGS = $(CFLAGS) -fno-exceptions -std=gnu++17 -fpermissive
ASFLAGS = $(CFLAGS)
CC = $(CXX)
diff --git a/platform/windows/Makefile b/platform/windows/Makefile
index d31a594..13892b0 100644
--- a/platform/windows/Makefile
+++ b/platform/windows/Makefile
@@ -21,7 +21,7 @@ CFLAGS := -g -Wall -Wno-deprecated -ffunction-sections -std=c++17 \
CFLAGS += $(INCLUDE) -DVER_STR=\"$(APP_VERSION)\"
-CXXFLAGS := $(CFLAGS) -fno-rtti -fexceptions
+CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
#-std=gnu++11 was used before... not sure of difference
LIBS := -lSDL2
diff --git a/test/Makefile b/test/Makefile
index e566b47..88078fd 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,7 +1,7 @@
#match flags from 3ds and switch makefiles. This may not all be necessary
# removed -O2 to make debugging tests easier
CFLAGS := -Wall -Wno-deprecated -std=c++17 -g -c \
- -fno-rtti -fexceptions
+ -fno-rtti -fno-exceptions
all: runtests