diff --git a/setup.py b/setup.py index d677cd7765..dc44f33043 100644 --- a/setup.py +++ b/setup.py @@ -84,7 +84,7 @@ def extra(self): compiler_directives['linetrace'] = True # Set CFLAG to all optimizations (-O3) # Any additional CFLAGS will be appended. Only the last optimization flag will have effect - os.environ['CFLAGS'] = '-O3 ' + os.environ.get('CFLAGS', '') + os.environ['CFLAGS'] = '-O3 -g0' + os.environ.get('CFLAGS', '') ext_modules = cythonize( 'pydantic/*.py', exclude=['pydantic/generics.py'],