mirror of https://github.com/python/cpython
Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc.
This commit is contained in:
parent
61c270345c
commit
b5875b642e
|
@ -98,7 +98,13 @@ fi
|
||||||
AC_SUBST(OPT)
|
AC_SUBST(OPT)
|
||||||
if test -z "$OPT"
|
if test -z "$OPT"
|
||||||
then
|
then
|
||||||
case $ac_sys_system in
|
case $GCC in
|
||||||
|
yes)
|
||||||
|
case $ac_cv_prog_cc_g in
|
||||||
|
yes) OPT="-g -O2";;
|
||||||
|
*) OPT="-O2";;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
*) OPT="-O";;
|
*) OPT="-O";;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue