Skip to content

Commit 464d55a

Browse files
committed
Reduce amount of debug info injected in extension modules
This can help in decreasing memory resource requirements on CI and generating relatively thinner binaries Resolves #11507
1 parent e32f35b commit 464d55a

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)