Skip to content

Commit

Permalink
[libretro] Add NDEBUG when building in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jan 5, 2025
1 parent d71ff7f commit 94b7355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/libretro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,10 @@ ifeq ($(DEBUG), 1)
CXXFLAGS += -O0 -DDEBUG -g
else
BUILD_CONFIG = Release
CXXFLAGS += -O3
CXXFLAGS += -O3 -DNDEBUG
endif

GIT_VERSION ?= "$(shell git describe --abbrev=7 --dirty --always --tags || echo unknown)"
GIT_VERSION ?= $(shell git describe --abbrev=7 --dirty --always --tags || echo unknown)
ifneq ($(GIT_VERSION)," unknown")
CXXFLAGS += -DEMULATOR_BUILD=\"$(GIT_VERSION)\"
endif
Expand Down

0 comments on commit 94b7355

Please sign in to comment.