diff --git a/Android.mk b/Android.mk index a49fee81..8d45e67b 100644 --- a/Android.mk +++ b/Android.mk @@ -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 diff --git a/premake5.lua b/premake5.lua index 12e217d8..75c77081 100644 --- a/premake5.lua +++ b/premake5.lua @@ -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"