Push force-cpp11 down to dependencies on osx-64; it's required for the disk stuff...
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Apr 2020 11:58:09 +0000 (13:58 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 2 Apr 2020 11:58:09 +0000 (13:58 +0200)
cscript

diff --git a/cscript b/cscript
index aa2a46b41bf54f725a8f95d14e533c1cf9afe260..510fc44d886972b95a1061b7c52e2e6701081ba5 100644 (file)
--- a/cscript
+++ b/cscript
@@ -362,8 +362,13 @@ def dependencies(target):
         # Use distro-provided FFmpeg on Arch
         deps = []
 
-    deps.append(('libdcp', None, {'force-cpp11': True}))
-    deps.append(('libsub', None, {'force-cpp11': True}))
+    cpp_lib_options = {}
+    if target.platform == 'osx' and target.bits == 64:
+        # We can use C++11 mode, so let's do it.
+        options['force-cpp11'] = True
+
+    deps.append(('libdcp', None, cpp_lib_options))
+    deps.append(('libsub', None, cpp_lib_options))
     deps.append(('rtaudio', 'carl'))
     # We get our OpenSSL libraries from the environment, but we
     # also need a patched openssl binary to make certificates.