summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-17 13:17:04 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-19 09:40:40 +0100
commitc53e6692a0828ca05ab4066e274453a1dc81567b (patch)
treeed9abe1fcc0e0b201fb7b35351a860ae40d21a3f
parentd1d86684114447809c762a78e8e5cb821e1253fc (diff)
Use C++17 when the c++17 option is passed in.v0.17.8
-rw-r--r--cscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/cscript b/cscript
index 8f95c91..3104602 100644
--- 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')