Add -fno-exceptions -fno-rtti to CXXFLAGS instead of CFLAGS

This commit is contained in:
Maschell 2022-02-13 15:02:16 +01:00
parent bd10088784
commit 2eae70a247

View File

@ -35,14 +35,14 @@ INCLUDES := source \
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# options for code generation # options for code generation
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
CFLAGS := -Wall -Werror -save-temps -fno-exceptions -fno-rtti\ CFLAGS := -Wall -Werror -save-temps\
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
$(MACHDEP) \ $(MACHDEP) \
$(BUILD_CFLAGS) $(BUILD_CFLAGS)
CFLAGS += $(INCLUDE) -D__WIIU__ CFLAGS += $(INCLUDE) -D__WIIU__
CXXFLAGS := $(CFLAGS) -std=c++20 CXXFLAGS := $(CFLAGS) -std=c++20 -fno-exceptions -fno-rtti
ASFLAGS := $(MACHDEP) ASFLAGS := $(MACHDEP)