mirror of https://github.com/odrling/Aegisub
Use -O2 for normal builds, and -O0 for debug.
Originally committed to SVN as r4007.
This commit is contained in:
parent
a4fe0531f5
commit
5d08d15bc2
|
@ -277,10 +277,14 @@ if test "$enable_compiler_flags" != "no"; then
|
|||
AC_CXX_FLAG([-pipe])
|
||||
|
||||
# -O* messes with debugging.
|
||||
if test "$enable_debug" != "yes"; then
|
||||
AC_C_FLAG([-O2])
|
||||
AC_CXX_FLAG([-O2])
|
||||
if test "$enable_debug" = "yes"; then
|
||||
opt_flag="-O0"
|
||||
else
|
||||
opt_flag="-O2"
|
||||
fi
|
||||
|
||||
AC_C_FLAG([$opt_flag])
|
||||
AC_CXX_FLAG([$opt_flag])
|
||||
fi
|
||||
|
||||
######################################
|
||||
|
|
Loading…
Reference in New Issue