mirror of https://github.com/odrling/Aegisub
Really disable -O2 when --enable-debug is used.
Originally committed to SVN as r2731.
This commit is contained in:
parent
88dc740d90
commit
6495831ed0
|
@ -226,11 +226,12 @@ if test "$enable_compiler_flags" != "no"; then
|
||||||
AC_CXX_FLAG([-fpermissive])
|
AC_CXX_FLAG([-fpermissive])
|
||||||
AC_CXX_FLAG([-fno-strict-aliasing])
|
AC_CXX_FLAG([-fno-strict-aliasing])
|
||||||
AC_CXX_FLAG([-std=c++98])
|
AC_CXX_FLAG([-std=c++98])
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$enable_compiler_flags" != "no" || test "$enable_debug" != "yes"; then
|
# -O* messes with debugging.
|
||||||
AC_C_FLAG([-O2])
|
if test "$enable_debug" != "yes"; then
|
||||||
AC_CXX_FLAG([-O2])
|
AC_C_FLAG([-O2])
|
||||||
|
AC_CXX_FLAG([-O2])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
|
|
Loading…
Reference in New Issue