[Python-checkins] bpo-42825: Enable /OPT:REF (GH-24098)

zooba webhook-mailer at python.org
Fri Feb 19 18:27:09 EST 2021


https://github.com/python/cpython/commit/b4af629f4d4868ef74ee298d66259fae78c7fd89
commit: b4af629f4d4868ef74ee298d66259fae78c7fd89
branch: master
author: Austin Lamb <austin.lamb at microsoft.com>
committer: zooba <steve.dower at microsoft.com>
date: 2021-02-19T23:27:01Z
summary:

bpo-42825: Enable /OPT:REF (GH-24098)

We explicitly disable /OPT:ICF as some manual optimisations depend on some functions still having distinct pointers (such as wrap_binary_func and wrap_binary_func_l).

files:
M PCbuild/pyproject.props

diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index 98e5ab030321d..834b27c86d42c 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -74,6 +74,7 @@
       <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGInstrument'">PGInstrument</LinkTimeCodeGeneration>
       <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGUpdate'">PGUpdate</LinkTimeCodeGeneration>
       <AdditionalDependencies>advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalOptions Condition="$(Configuration) != 'Debug'">/OPT:REF,NOICF %(AdditionalOptions)</AdditionalOptions>
     </Link>
     <Lib>
       <LinkTimeCodeGeneration Condition="$(Configuration) == 'Release'">true</LinkTimeCodeGeneration>



More information about the Python-checkins mailing list