File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ Add optimizing flag `WITH_COMPUTED_GOTOS ` to support such builds using
2+ clang-cl on Windows. Patch by Chris Eibl.
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 310310for more on this topic.
311311
312312
313+ Optimization flags
314+ ------------------
315+ You can set optimization flags either via
316+ * environment variables, e.g.
317+ set WITH_COMPUTED_GOTOS=true
318+ * or pass them as parameters to `build.bat`, e.g.
319+ build.bat "/p:WITH_COMPUTED_GOTOS=true"
320+ * or put them in `msbuild.rsp` in the `PCbuild` directory, one flag per line
321+
322+ Supported flags are:
323+ * WITH_COMPUTED_GOTOS: build the interpreter using "computed gotos".
324+ Currently only supported by clang-cl.
325+
326+
313327Static library
314328--------------
315329
You can’t perform that action at this time.
0 commit comments