Use C++17 when building for (new) macOS.
authorCarl Hetherington <cth@carlh.net>
Sat, 16 Mar 2024 13:23:15 +0000 (14:23 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 Mar 2024 17:25:09 +0000 (18:25 +0100)
cscript

diff --git a/cscript b/cscript
index 6f1f5c663f9b938bc787b931a8e6abfa5c2c1c15..08907c1d83ed5ff28dcb20e0a4a9f406a54abb8c 100644 (file)
--- 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'