Pass force-cpp11 down to libcxml.
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Apr 2020 12:28:12 +0000 (14:28 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 2 Apr 2020 12:28:12 +0000 (14:28 +0200)
cscript

diff --git a/cscript b/cscript
index c3ce3d9d9bc5b5f4c241dc3cac42088a40d9a198..d5197d28f04eea45cda9eca72649cb7253ce452c 100644 (file)
--- a/cscript
+++ b/cscript
@@ -37,10 +37,11 @@ import shutil
 option_defaults = { 'force-cpp11': False, 'jpeg': 'oj2' }
 
 def dependencies(target, options):
+    libcxml = ('libcxml', '0d18df4', {'force-cpp11': options['force-cpp11']})
     if (target.platform == 'windows' and target.version == 'xp') or options['jpeg'] == 'oj1':
-        return (('libcxml', '0d18df4'), ('openjpeg', 'f166257'), ('asdcplib', 'carl'))
+        return (libcxml, ('openjpeg', 'f166257'), ('asdcplib', 'carl'))
     else:
-        return (('libcxml', '0d18df4'), ('openjpeg', '956af06'), ('asdcplib', 'carl'))
+        return (libcxml, ('openjpeg', '956af06'), ('asdcplib', 'carl'))
 
 def build(target, options):
     cmd = './waf configure --disable-examples --prefix=%s' % target.directory