From 94b7355f5507eb8dc21ec2ae7aba123e3c354f44 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sun, 5 Jan 2025 11:50:46 +0100 Subject: [PATCH] [libretro] Add NDEBUG when building in debug --- platforms/libretro/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/libretro/Makefile b/platforms/libretro/Makefile index 4ed24991..b809a5d7 100644 --- a/platforms/libretro/Makefile +++ b/platforms/libretro/Makefile @@ -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