Try to support debug mode when building.
authorCarl Hetherington <cth@carlh.net>
Mon, 21 Mar 2016 01:13:55 +0000 (01:13 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 21 Mar 2016 01:13:55 +0000 (01:13 +0000)
cscript

diff --git a/cscript b/cscript
index 6c1404eb3d7fde75c7cc636ea73b29adb8051755..3a1c8b3523d60a0a893987b8ddbaead538bd43b5 100644 (file)
--- a/cscript
+++ b/cscript
@@ -19,6 +19,8 @@
 
 def build(target, options):
     cmd = './configure --prefix=%s --disable-shared --enable-static ' % target.directory
+    if target.debug:
+        cmd += '--enable-debug '
     if target.platform == 'linux':
         cmd += '%s --with-pulse --with-alsa'
     elif target.platform == 'windows':