Commit 8cea5929 authored by Alex Wang's avatar Alex Wang Committed by INADA Naoki

bpo-29643: Fix check for --enable-optimizations (GH-129)

The presence of the ``--enable-optimizations`` flag is indicated by the
value of ``$enableval``, but the configure script was checking ``$withval``,
resulting in the ``--enable-optimizations`` flag being effectively ignored.
parent ad2f9e2c
...@@ -991,6 +991,11 @@ Tools/Demos ...@@ -991,6 +991,11 @@ Tools/Demos
- Issue #28102: The zipfile module CLI now prints usage to stderr. - Issue #28102: The zipfile module CLI now prints usage to stderr.
Patch by Stephen J. Turnbull. Patch by Stephen J. Turnbull.
Build
-----
- bpo-29643: Fix ``--enable-optimization`` didn't work.
Tests Tests
----- -----
......
...@@ -6521,7 +6521,7 @@ $as_echo_n "checking for --enable-optimizations... " >&6; } ...@@ -6521,7 +6521,7 @@ $as_echo_n "checking for --enable-optimizations... " >&6; }
# Check whether --enable-optimizations was given. # Check whether --enable-optimizations was given.
if test "${enable_optimizations+set}" = set; then : if test "${enable_optimizations+set}" = set; then :
enableval=$enable_optimizations; enableval=$enable_optimizations;
if test "$withval" != no if test "$enableval" != no
then then
Py_OPT='true' Py_OPT='true'
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
......
...@@ -1274,7 +1274,7 @@ Py_OPT='false' ...@@ -1274,7 +1274,7 @@ Py_OPT='false'
AC_MSG_CHECKING(for --enable-optimizations) AC_MSG_CHECKING(for --enable-optimizations)
AC_ARG_ENABLE(optimizations, AS_HELP_STRING([--enable-optimizations], [Enable expensive optimizations (PGO, etc). Disabled by default.]), AC_ARG_ENABLE(optimizations, AS_HELP_STRING([--enable-optimizations], [Enable expensive optimizations (PGO, etc). Disabled by default.]),
[ [
if test "$withval" != no if test "$enableval" != no
then then
Py_OPT='true' Py_OPT='true'
AC_MSG_RESULT(yes); AC_MSG_RESULT(yes);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment