Use C++17 when the c++17 option is passed in. v0.17.8
authorCarl Hetherington <cth@carlh.net>
Sun, 17 Mar 2024 12:17:04 +0000 (13:17 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 19 Mar 2024 08:40:40 +0000 (09:40 +0100)
cscript

diff --git a/cscript b/cscript
index 8f95c91a0517cd59bb150676cb523eaec4d9fc0f..310460297a2a240c4ca7ed461224c66aee13692a 100644 (file)
--- a/cscript
+++ b/cscript
@@ -31,6 +31,9 @@ def build(target, options):
     elif target.platform == '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')