Skip to content

Commit 5605192

Browse files
committed
Reduce amount of debug info injected in extension modules
sysconfig.get_config_var('CFLAGS') has '-g', which defaults to level 2 Py310 builds on linux-aarch64 require >5GB with level 2, which result in the docker build containers getting killed on azure, where we have only 7GB of memory. With -g1, the memory requirement decreases to <4GB Resolves #11507
1 parent e32f35b commit 5605192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def mypycify(
513513
cflags += [
514514
'-O{}'.format(opt_level), '-Werror', '-Wno-unused-function', '-Wno-unused-label',
515515
'-Wno-unreachable-code', '-Wno-unused-variable',
516-
'-Wno-unused-command-line-argument', '-Wno-unknown-warning-option',
516+
'-Wno-unused-command-line-argument', '-Wno-unknown-warning-option', '-g1'
517517
]
518518
if 'gcc' in compiler.compiler[0] or 'gnu-cc' in compiler.compiler[0]:
519519
# This flag is needed for gcc but does not exist on clang.

0 commit comments

Comments
 (0)