Add debug option to cscript.
authorCarl Hetherington <cth@carlh.net>
Tue, 2 Jul 2013 10:14:15 +0000 (11:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 2 Jul 2013 10:14:15 +0000 (11:14 +0100)
cscript

diff --git a/cscript b/cscript
index a1a9232dda1e89b98d52fa70c4c752f5a7c93eca..23dea9cdf1a76156b128798ea24edf9b03d1b45a 100644 (file)
--- a/cscript
+++ b/cscript
@@ -15,6 +15,10 @@ def build(target):
         cmd += ' --target-windows'
     elif target.platform == 'osx':
         cmd += ' --osx'
+
+    if target.debug:
+        cmd += ' --enable-debug'
+
     target.command(cmd)
     target.command('./waf build install')