summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-16 14:23:15 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-20 18:25:09 +0100
commit055bdbca9582b43e2bd8d0373f35f37c9a2a73f8 (patch)
treeef48d28005a24f2e4e404e746955e508fb595f37
parent0232d80a625b2ffae687e6473ab3fc2603cf87ea (diff)
Use C++17 when building for (new) macOS.
-rw-r--r--cscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/cscript b/cscript
index 6f1f5c663..08907c1d8 100644
--- a/cscript
+++ b/cscript
@@ -587,8 +587,10 @@ def configure_options(target, options, for_package=False):
if can_build_disk(target):
opt += ' --enable-disk'
- if target.platform == 'osx' and target.arch == 'arm64':
- opt += ' --target-macos-arm64 --wx-config=%s/wx-config' % target.bin
+ if target.platform == 'osx':
+ opt += ' --c++17'
+ if target.arch == 'arm64':
+ opt += ' --target-macos-arm64 --wx-config=%s/wx-config' % target.bin
if target.platform == 'linux' and target.distro == 'ubuntu' and target.version in ['22.04']:
opt += ' --enable-grok'