Further adventures in fixing build with options==None.
authorCarl Hetherington <cth@carlh.net>
Mon, 24 Jul 2017 11:14:30 +0000 (12:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 24 Jul 2017 11:14:30 +0000 (12:14 +0100)
cscript

diff --git a/cscript b/cscript
index c9ba6d33e2be789b023d04260d36c7ac334977d6..217d96cff2f314e00f31c2d386802132b1530e18 100644 (file)
--- a/cscript
+++ b/cscript
@@ -41,7 +41,7 @@ def dependencies(target, options):
 
 def build(target, options):
     cmd = './waf configure --disable-examples --prefix=%s' % target.directory
-    if 'jpeg' in options:
+    if options is not None and 'jpeg' in options:
         cmd += ' --jpeg=%s' % options['jpeg']
     if target.platform == 'linux':
         cmd += ' --static'