Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4ef9d3

Browse files
committed
Merge for issue python#28605
2 parents ca4b6d0 + 1d8f755 commit d4ef9d3

3 files changed

Lines changed: 7 additions & 19 deletions

File tree

Doc/whatsnew/3.6.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ Build and C API Changes
11771177
with only about 16 tests failures. See the Android meta-issue :issue:`26865`.
11781178

11791179
* The ``--with-optimizations`` configure flag has been added. Turning it on
1180-
will activate LTO and PGO build support (when available).
1180+
will activate expensive optimizations like PGO.
11811181
(Original patch by Alecsandru Patrascu of Intel in :issue:`26539`.)
11821182

11831183
* New :c:func:`Py_FinalizeEx` API which indicates if flushing buffered data

configure

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,6 @@ infodir
784784
docdir
785785
oldincludedir
786786
includedir
787-
runstatedir
788787
localstatedir
789788
sharedstatedir
790789
sysconfdir
@@ -895,7 +894,6 @@ datadir='${datarootdir}'
895894
sysconfdir='${prefix}/etc'
896895
sharedstatedir='${prefix}/com'
897896
localstatedir='${prefix}/var'
898-
runstatedir='${localstatedir}/run'
899897
includedir='${prefix}/include'
900898
oldincludedir='/usr/include'
901899
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1148,15 +1146,6 @@ do
11481146
| -silent | --silent | --silen | --sile | --sil)
11491147
silent=yes ;;
11501148

1151-
-runstatedir | --runstatedir | --runstatedi | --runstated \
1152-
| --runstate | --runstat | --runsta | --runst | --runs \
1153-
| --run | --ru | --r)
1154-
ac_prev=runstatedir ;;
1155-
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1156-
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1157-
| --run=* | --ru=* | --r=*)
1158-
runstatedir=$ac_optarg ;;
1159-
11601149
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11611150
ac_prev=sbindir ;;
11621151
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1294,7 +1283,7 @@ fi
12941283
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12951284
datadir sysconfdir sharedstatedir localstatedir includedir \
12961285
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297-
libdir localedir mandir runstatedir
1286+
libdir localedir mandir
12981287
do
12991288
eval ac_val=\$$ac_var
13001289
# Remove trailing slashes.
@@ -1447,7 +1436,6 @@ Fine tuning of the installation directories:
14471436
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14481437
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14491438
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450-
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14511439
--libdir=DIR object code libraries [EPREFIX/lib]
14521440
--includedir=DIR C header files [PREFIX/include]
14531441
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -1511,8 +1499,8 @@ Optional Packages:
15111499
compiler
15121500
--with-suffix=.exe set executable suffix
15131501
--with-pydebug build with Py_DEBUG defined
1514-
--with-optimizations Enable expensive optimizations (PGO, maybe LTO,
1515-
etc). Disabled by default.
1502+
--with-optimizations Enable expensive optimizations (PGO, etc). Disabled
1503+
by default.
15161504
--with-lto Enable Link Time Optimization in PGO builds.
15171505
Disabled by default.
15181506
--with-hash-algorithm=[fnv|siphash24]
@@ -6560,7 +6548,7 @@ fi
65606548
if test "$Py_OPT" = 'true' ; then
65616549
# Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
65626550
# compile working code using it and both test_distutils and test_gdb are
6563-
# broken when you do managed to get a toolchain that works with it. People
6551+
# broken when you do manage to get a toolchain that works with it. People
65646552
# who want LTO need to use --with-lto themselves.
65656553
DEF_MAKE_ALL_RULE="profile-opt"
65666554
REQUIRE_PGO="yes"

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ AC_SUBST(DEF_MAKE_ALL_RULE)
12821282
AC_SUBST(DEF_MAKE_RULE)
12831283
Py_OPT='false'
12841284
AC_MSG_CHECKING(for --with-optimizations)
1285-
AC_ARG_WITH(optimizations, AS_HELP_STRING([--with-optimizations], [Enable expensive optimizations (PGO, maybe LTO, etc). Disabled by default.]),
1285+
AC_ARG_WITH(optimizations, AS_HELP_STRING([--with-optimizations], [Enable expensive optimizations (PGO, etc). Disabled by default.]),
12861286
[
12871287
if test "$withval" != no
12881288
then
@@ -1296,7 +1296,7 @@ fi],
12961296
if test "$Py_OPT" = 'true' ; then
12971297
# Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
12981298
# compile working code using it and both test_distutils and test_gdb are
1299-
# broken when you do managed to get a toolchain that works with it. People
1299+
# broken when you do manage to get a toolchain that works with it. People
13001300
# who want LTO need to use --with-lto themselves.
13011301
DEF_MAKE_ALL_RULE="profile-opt"
13021302
REQUIRE_PGO="yes"

0 commit comments

Comments
 (0)