Fix windows cscript build.
authorCarl Hetherington <cth@carlh.net>
Sun, 26 Oct 2014 15:45:49 +0000 (15:45 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 26 Oct 2014 15:45:49 +0000 (15:45 +0000)
cscript

diff --git a/cscript b/cscript
index 03f4bf600b5f959140a484146736a014182b1889..0198ffffb2f6d1916c6851b194cc2da21c7608df 100644 (file)
--- a/cscript
+++ b/cscript
@@ -4,12 +4,12 @@ def build(target, options):
     cmd = './waf configure --prefix=%s' % target.directory
     if target.platform == 'linux':
         cmd += ' --static'
+        if target.distro == 'centos':
+            cmd += ' --disable-tests'
     if target.debug:
         cmd += ' --enable-debug'
     if target.platform == 'windows':
         cmd += ' --target-windows --disable-tests'
-    if target.distro == 'centos':
-        cmd += ' --disable-tests'
 
     target.command(cmd)
     target.command('./waf build install')