Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13bcd67

Browse files
committed
Add debug option to scons command.
1 parent 6817958 commit 13bcd67

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

numpy/distutils/command/scons.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,16 @@ class scons(old_build_ext):
323323
('compiler=', None, "specify the C compiler type"),
324324
('cxxcompiler=', None,
325325
"specify the C++ compiler type (same as C by default)"),
326+
('debug', 'g',
327+
"compile/link with debugging information"),
326328
] + library_options
327329

328330
def initialize_options(self):
329331
old_build_ext.initialize_options(self)
330332
self.build_clib = None
331333

334+
self.debug = 0
335+
332336
self.compiler = None
333337
self.cxxcompiler = None
334338
self.fcompiler = None
@@ -495,6 +499,8 @@ def _call_scons(self, scons_exec, sconscript, pkg_name, bootstrapping):
495499
else:
496500
cmd.append('cc_opt=%s' % self.scons_compiler)
497501

502+
cmd.append('debug=%s' % self.debug)
503+
498504
if self.scons_fcompiler:
499505
cmd.append('f77_opt=%s' % self.scons_fcompiler)
500506
if self.scons_fcompiler_path:

0 commit comments

Comments
 (0)