From 13bcd67d4dc01ddc9788fc252d1d8752c30c2ed8 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Sat, 19 Sep 2009 15:57:26 +0000 Subject: Add debug option to scons command. --- numpy/distutils/command/scons.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'numpy') 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: -- cgit v1.2.1