Skip to content

Commit 59eb1ab

Browse files
ts826848vstinner
authored andcommitted
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. (cherry picked from commit 8cea592)
1 parent 5965062 commit 59eb1ab

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Misc/NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ What's New in Python 3.6.1 release candidate 1
8989
==============================================
9090

9191
*Release date: 2017-03-04*
92+
Build
93+
-----
94+
95+
- bpo-29643: Fix ``--enable-optimization`` didn't work.
96+
97+
Tests
98+
-----
9299

93100
Core and Builtins
94101
-----------------

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6521,7 +6521,7 @@ $as_echo_n "checking for --enable-optimizations... " >&6; }
65216521
# Check whether --enable-optimizations was given.
65226522
if test "${enable_optimizations+set}" = set; then :
65236523
enableval=$enable_optimizations;
6524-
if test "$withval" != no
6524+
if test "$enableval" != no
65256525
then
65266526
Py_OPT='true'
65276527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ Py_OPT='false'
12741274
AC_MSG_CHECKING(for --enable-optimizations)
12751275
AC_ARG_ENABLE(optimizations, AS_HELP_STRING([--enable-optimizations], [Enable expensive optimizations (PGO, etc). Disabled by default.]),
12761276
[
1277-
if test "$withval" != no
1277+
if test "$enableval" != no
12781278
then
12791279
Py_OPT='true'
12801280
AC_MSG_RESULT(yes);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy