mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
configure.ac: Disable compiler optimizations when --enable-debug is set
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
e721a76e68
commit
1223458764
1 changed files with 4 additions and 4 deletions
|
|
@ -341,18 +341,18 @@ AC_ARG_ENABLE([debug],
|
|||
if test "x$enable_debug" = xyes; then
|
||||
DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD -DDEBUG"
|
||||
if test "x$GCC_FOR_BUILD" = xyes; then
|
||||
CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -g"
|
||||
CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -g -O0"
|
||||
fi
|
||||
if test "x$GXX_FOR_BUILD" = xyes; then
|
||||
CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -g"
|
||||
CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -g -O0"
|
||||
fi
|
||||
|
||||
DEFINES="$DEFINES -DDEBUG"
|
||||
if test "x$GCC" = xyes; then
|
||||
CFLAGS="$CFLAGS -g"
|
||||
CFLAGS="$CFLAGS -g -O0"
|
||||
fi
|
||||
if test "x$GXX" = xyes; then
|
||||
CXXFLAGS="$CXXFLAGS -g"
|
||||
CXXFLAGS="$CXXFLAGS -g -O0"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue