diff options
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r-- | numpy/distutils/command/scons.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py index 9894bd972..386397f87 100644 --- a/numpy/distutils/command/scons.py +++ b/numpy/distutils/command/scons.py @@ -323,12 +323,16 @@ class scons(old_build_ext): ('compiler=', None, "specify the C compiler type"), ('cxxcompiler=', None, "specify the C++ compiler type (same as C by default)"), + ('debug', 'g', + "compile/link with debugging information"), ] + library_options def initialize_options(self): old_build_ext.initialize_options(self) self.build_clib = None + self.debug = 0 + self.compiler = None self.cxxcompiler = None self.fcompiler = None @@ -495,6 +499,8 @@ class scons(old_build_ext): else: cmd.append('cc_opt=%s' % self.scons_compiler) + cmd.append('debug=%s' % self.debug) + if self.scons_fcompiler: cmd.append('f77_opt=%s' % self.scons_fcompiler) if self.scons_fcompiler_path: |