mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
mesa: Have configure define NDEBUG, not mtypes.h.
mtypes.h had been defining NDEBUG (used by assert) if DEBUG was not
defined. Confusing and bizarre that you don't get NDEBUG if you don't
include mtypes.h.
... which is just what happened in commit bef38f62e.
Let's let configure define this for us if not using --enable-debug.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
b6393d7040
commit
b21ad12485
2 changed files with 2 additions and 3 deletions
|
|
@ -370,6 +370,8 @@ if test "x$enable_debug" = xyes; then
|
|||
CXXFLAGS="$CXXFLAGS -O0"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
DEFINES="$DEFINES -DNDEBUG"
|
||||
fi
|
||||
|
||||
dnl
|
||||
|
|
|
|||
|
|
@ -4512,9 +4512,6 @@ extern int MESA_DEBUG_FLAGS;
|
|||
# define MESA_VERBOSE 0
|
||||
# define MESA_DEBUG_FLAGS 0
|
||||
# define MESA_FUNCTION "a function"
|
||||
# ifndef NDEBUG
|
||||
# define NDEBUG
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue