Skip to content

Commit

Permalink
Add debug flag to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlees committed Mar 16, 2024
1 parent e99d7de commit 1003e19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def build_extension(self, ext):
env = os.environ.copy()
env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get('CXXFLAGS', ''),
self.distribution.get_version())
if cfg == 'Debug':
env['CXXFLAGS'] += "-DDEBUG"

if not os.path.exists(self.build_temp):
os.makedirs(self.build_temp)
Expand Down

0 comments on commit 1003e19

Please sign in to comment.