From 055bdbca9582b43e2bd8d0373f35f37c9a2a73f8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 16 Mar 2024 14:23:15 +0100 Subject: [PATCH] Use C++17 when building for (new) macOS. --- cscript | 6 ++++-- 1 file 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' -- 2.30.2