We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efbb649 commit 36044f3Copy full SHA for 36044f3
Tools/peg_generator/pegen/build.py
@@ -1,6 +1,7 @@
1
import itertools
2
import pathlib
3
import shutil
4
+import sys
5
import sysconfig
6
import tempfile
7
import tokenize
@@ -63,7 +64,11 @@ def compile_c_extension(
63
64
if keep_asserts:
65
extra_compile_args.append("-UNDEBUG")
66
if disable_optimization:
- extra_compile_args.append("-O0")
67
+ if sys.platform == 'win32':
68
+ extra_compile_args.append("/Od")
69
+ extra_link_args.append("/LTCG:OFF")
70
+ else:
71
+ extra_compile_args.append("-O0")
72
extension = [
73
Extension(
74
extension_name,
0 commit comments