Allow force-cpp11 via cscript options.
authorCarl Hetherington <cth@carlh.net>
Mon, 3 Feb 2020 00:02:26 +0000 (01:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 3 Feb 2020 00:02:26 +0000 (01:02 +0100)
cscript

diff --git a/cscript b/cscript
index 325df408b63ecc5264087f4900d1076c2c46965b..4d9d01709585334cecc14a657402a2a9fe1159ea 100644 (file)
--- a/cscript
+++ b/cscript
@@ -42,6 +42,9 @@ def build(target, options):
     if target.platform == 'windows':
         cmd += ' --target-windows --disable-tests'
 
+    if options is not None and 'force-cpp11' in options and options['force-cpp11']:
+        cmd += ' --force-cpp11'
+
     target.command(cmd)
     target.command('./waf build install')