Skip to content

Commit

Permalink
SporeModManager: add -fno-exceptions to OPTFLAGS in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jan 20, 2024
1 parent 896d118 commit 0c0a92f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SporeModManager/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ MINGW_WINDRES ?= i686-w64-mingw32-windres

ifeq ($(MINGW), 0)
LDFLAGS := -flto -s
OPTFLAGS := -Os -flto -Wall -Wextra -Wpedantic
OPTFLAGS := -Os -fno-exceptions -flto -Wall -Wextra -Wpedantic
OBJ := o
EXE_EXT :=
else
# mingw doesn't like LTO
# and we need to statically link
LDFLAGS := -s -municode -static
OPTFLAGS := -Os -Wall -Wextra -Wpedantic
OPTFLAGS := -Os -fno-exceptions -Wall -Wextra -Wpedantic
OBJ := obj
EXE_EXT := .exe
endif
Expand Down

0 comments on commit 0c0a92f

Please sign in to comment.