summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin Lamb <austin.lamb@microsoft.com>2021-02-19 23:27:01 (GMT)
committerGitHub <noreply@github.com>2021-02-19 23:27:01 (GMT)
commitb4af629f4d4868ef74ee298d66259fae78c7fd89 (patch)
tree89e8f1789cb1de89922b31d81439f673ec9ce2d1
parent2d3e463e4a5aa109d1c15c86f9631580f5ef7a7e (diff)
downloadcpython-b4af629f4d4868ef74ee298d66259fae78c7fd89.zip
cpython-b4af629f4d4868ef74ee298d66259fae78c7fd89.tar.gz
cpython-b4af629f4d4868ef74ee298d66259fae78c7fd89.tar.bz2
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).
-rw-r--r--PCbuild/pyproject.props1
1 files changed, 1 insertions, 0 deletions
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index 98e5ab0..834b27c 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>