diff options
author | David Cournapeau <cournape@gmail.com> | 2009-09-19 15:57:26 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-09-19 15:57:26 +0000 |
commit | 13bcd67d4dc01ddc9788fc252d1d8752c30c2ed8 (patch) | |
tree | b1bb5ffb8dd9e2ff525feb962a1e4c653c4c1ec7 /numpy/distutils/command/scons.py | |
parent | 68179584d3277daaef57d079f82bb5976de9d5d1 (diff) | |
download | numpy-13bcd67d4dc01ddc9788fc252d1d8752c30c2ed8.tar.gz |
Add debug option to scons command.
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: |