From: Carl Hetherington Date: Sat, 16 Mar 2024 13:23:15 +0000 (+0100) Subject: Use C++17 when building for (new) macOS. X-Git-Tag: v2.17.14~6 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=055bdbca9582b43e2bd8d0373f35f37c9a2a73f8;hp=0232d80a625b2ffae687e6473ab3fc2603cf87ea;p=dcpomatic.git Use C++17 when building for (new) macOS. --- 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'