Check that a drive is on the list of available drives before writing to it.
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index 563306037af1adffeb2e816bf153a0875f3d7002..f258f5dfe7b9dd1f1d9b119797fb4d6ffd275295 100644 (file)
--- a/cscript
+++ b/cscript
@@ -362,10 +362,8 @@ def dependencies(target, options):
         # Use distro-provided FFmpeg on Arch
         deps = []
 
-    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
+    # Let's use C++11 mode if we can
+    cpp_lib_options = {'force-cpp11': True} if target.platform == 'osx' and target.bits == 64 else {}
 
     deps.append(('libdcp', None, cpp_lib_options))
     deps.append(('libsub', None, cpp_lib_options))