File tree 3 files changed +24
-0
lines changed
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 107
107
<PreprocessorDefinitions Condition =" '$(UseJIT)' == 'true'" >_Py_JIT;%(PreprocessorDefinitions)</PreprocessorDefinitions >
108
108
<PreprocessorDefinitions Condition =" '$(UseTIER2)' != '' and '$(UseTIER2)' != '0'" >_Py_TIER2=$(UseTIER2);%(PreprocessorDefinitions)</PreprocessorDefinitions >
109
109
<PreprocessorDefinitions Condition =" '$(UseTailCallInterp)' == 'true'" >Py_TAIL_CALL_INTERP=1;%(PreprocessorDefinitions)</PreprocessorDefinitions >
110
+ <PreprocessorDefinitions Condition =" '$(WITH_COMPUTED_GOTOS)' != ''" >HAVE_COMPUTED_GOTOS;%(PreprocessorDefinitions)</PreprocessorDefinitions >
110
111
</ClCompile >
111
112
<Link >
112
113
<AdditionalDependencies >version.lib;ws2_32.lib;pathcch.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies >
Original file line number Diff line number Diff line change 310
310
for more on this topic.
311
311
312
312
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
+
313
334
Static library
314
335
--------------
315
336
You can’t perform that action at this time.
0 commit comments