GH-131278: Add option to build with computed gotos on Windows with cl… · python/cpython@468a7aa · GitHub
Skip to content

Commit 468a7aa

Browse files
authored
GH-131278: Add option to build with computed gotos on Windows with clang-cl (GH-131279)
1 parent 94f4d87 commit 468a7aa

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions

PCbuild/pythoncore.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
<PreprocessorDefinitions Condition="'$(UseJIT)' == 'true'">_Py_JIT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
108108
<PreprocessorDefinitions Condition="'$(UseTIER2)' != '' and '$(UseTIER2)' != '0'">_Py_TIER2=$(UseTIER2);%(PreprocessorDefinitions)</PreprocessorDefinitions>
109109
<PreprocessorDefinitions Condition="'$(UseTailCallInterp)' == 'true'">Py_TAIL_CALL_INTERP=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
110+
<PreprocessorDefinitions Condition="'$(WITH_COMPUTED_GOTOS)' != ''">HAVE_COMPUTED_GOTOS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
110111
</ClCompile>
111112
<Link>
112113
<AdditionalDependencies>version.lib;ws2_32.lib;pathcch.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>

PCbuild/readme.txt

Lines changed: 21 additions & 0 deletions

0 commit comments

Comments
 (0)