Use C++17 when the c++17 option is passed in.
[libcxml.git] / cscript
diff --git a/cscript b/cscript
index b440d5511f5f1c01949bf709ebffb1028d23188e..310460297a2a240c4ca7ed461224c66aee13692a 100644 (file)
--- a/cscript
+++ b/cscript
@@ -29,7 +29,10 @@ def build(target, options):
             # build as test/tests.cc defines BOOST_TEST_DYN_LINK
             cmd += ' --disable-tests'
     elif target.platform == 'windows':
-        cmd += ' --target-windows'
+        cmd += f' --target-windows-{target.bits}'
+
+    if 'c++17' in options and options['c++17']:
+        cmd += ' --c++17'
 
     target.command(cmd)
     target.command('./waf build install')