mirror of https://github.com/python/cpython
bpo-44381: Windows build now allows enabling control flow guard (GH-26645)
This commit is contained in:
parent
4cb6ba1432
commit
5af56c6f2a
|
@ -0,0 +1,2 @@
|
|||
The Windows build now accepts :envvar:`EnableControlFlowGuard` set to
|
||||
``guard`` to enable CFG.
|
|
@ -44,11 +44,11 @@
|
|||
<CompileAs>Default</CompileAs>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<InlineFunctionExpansion Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<InlineFunctionExpansion Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<ControlFlowGuard Condition="$(EnableControlFlowGuard) != ''">$(EnableControlFlowGuard)</ControlFlowGuard>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<ClCompile Condition="$(Configuration) == 'Debug'">
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
|
|
Loading…
Reference in New Issue