From 1feb4b2ba7f9a3c4b252d035adb6709264703e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Fri, 9 Feb 2018 17:16:51 +0100 Subject: [PATCH] Build: defines NDEBUG in Release --- ChangeLog.md | 1 + build/scripts/common.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 9cfcdf6d4..fbea8802f 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -14,6 +14,7 @@ Miscellaneous: - Updated premake5-linux64 with a nightly to fix a build error when a previous version of Nazara was installed on the system. - Fix compilation with some MinGW distributions - Add Lua unit tests +- NDEBUG is now defined in Release Nazara Engine: - VertexMapper:GetComponentPtr no longer throw an error if component is disabled or incompatible with template type, instead a null pointer is returned. diff --git a/build/scripts/common.lua b/build/scripts/common.lua index 28243e888..f4572322e 100644 --- a/build/scripts/common.lua +++ b/build/scripts/common.lua @@ -821,6 +821,7 @@ function NazaraBuild:PrepareGeneric() -- Setup some optimizations for release filter("configurations:Release*") + defines("NDEBUG") optimize("Speed") vectorextensions("SSE2")