summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-07-24 12:12:50 +0100
committerCarl Hetherington <cth@carlh.net>2017-07-24 12:12:50 +0100
commit8778b7926b2b644f5726adc97cb15c8b25ac4fe0 (patch)
tree82d5d5cec2ee1cb292d045827a1cf5f82c6e15c8 /cscript
parenta4b28be9b47ca541bda1153feca9a37bbb304be6 (diff)
Fix build on Windows with no options.
Diffstat (limited to 'cscript')
-rw-r--r--cscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/cscript b/cscript
index 33e804a3..c9ba6d33 100644
--- a/cscript
+++ b/cscript
@@ -34,7 +34,7 @@
import os
def dependencies(target, options):
- if (target.platform == 'windows' and target.version == 'xp') or ('jpeg' in options and options['jpeg'] == 'oj1'):
+ if (target.platform == 'windows' and target.version == 'xp') or (options is not None and 'jpeg' in options and options['jpeg'] == 'oj1'):
return (('libcxml', '25e945f'), ('openjpeg-cdist', '5d8bffd'), ('asdcplib-cth', 'f3b0fb8'))
else:
return (('libcxml', '25e945f'), ('openjpeg2-cdist', '8ea62cc'), ('asdcplib-cth', 'f3b0fb8'))