File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ Add optimizing flag ``WITH_COMPUTED_GOTOS `` to Windows builds for when
2+ using a compiler that supports it (currently clang-cl). 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+
316+ You can set optimization flags either via
317+
318+ * environment variables, for example:
319+
320+ set WITH_COMPUTED_GOTOS=true
321+
322+ * or pass them as parameters to `build.bat`, for example:
323+
324+ build.bat "/p:WITH_COMPUTED_GOTOS=true"
325+
326+ * or put them in `msbuild.rsp` in the `PCbuild` directory, one flag per line.
327+
328+ Supported flags are:
329+
330+ * WITH_COMPUTED_GOTOS: build the interpreter using "computed gotos".
331+ Currently only supported by clang-cl.
332+
333+
313334Static library
314335--------------
315336
You can’t perform that action at this time.
0 commit comments