Skip to content

Commit

Permalink
Define NDEBUG in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Mar 8, 2024
1 parent ffd8ec1 commit aeb5cce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ LOCAL_SRC_FILES := card.cpp \
processor_visit.cpp \
scriptlib.cpp

LOCAL_CFLAGS := -pedantic -Wextra -fvisibility=hidden -DOCGCORE_EXPORT_FUNCTIONS
LOCAL_CFLAGS := -pedantic -Wextra -fvisibility=hidden -DOCGCORE_EXPORT_FUNCTIONS -DNDEBUG
LOCAL_CPPFLAGS := -fexceptions -fno-rtti
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../lua/include
LOCAL_STATIC_LIBRARIES += liblua5.3
Expand Down
4 changes: 1 addition & 3 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,10 @@ if not subproject then
filter { "action:vs*", "configurations:Debug", "architecture:*64" }
targetdir "bin/x64/debug"

filter { "configurations:Release" , "action:not vs*" }
defines "NDEBUG"

filter "configurations:Release"
optimize "Size"
targetdir "bin/release"
defines "NDEBUG"

filter { "action:vs*", "configurations:Release", "architecture:*64" }
targetdir "bin/x64/release"
Expand Down

0 comments on commit aeb5cce

Please sign in to comment.