summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-17 13:17:40 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-20 18:21:28 +0100
commit8ba4029ad997f638dedced7a24d441450d55b589 (patch)
tree7591253417cdecfc6dddf700b0a118ca183bd98c
parent3efbc8af3f71d47faaa38f9e20092bcfa08c3713 (diff)
Use C++17 when the c++17 option is passed in.v1.9.2
-rw-r--r--cscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/cscript b/cscript
index 413f62c2..7ab2773e 100644
--- a/cscript
+++ b/cscript
@@ -51,6 +51,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'
+
if target.debug:
cmd += ' --enable-debug'