mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc.
This commit is contained in:
parent
61c270345c
commit
b5875b642e
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue