const correctness fix.
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index 04d3746eb00e18283f331d0fb04a2d4a5dc301b3..043aba64ce9cfbcc95e5415d8f8b03a315059042 100644 (file)
--- a/cscript
+++ b/cscript
@@ -335,8 +335,8 @@ def option_defaults():
 def configure_options(target, options):
     opt = ''
 
-    if target.platform != 'linux' or target.distro != 'ubuntu' or target.version != '18.04':
-        # Currently we only build tests on Ubuntu 18.04
+    if not (target.platform == 'linux' and target.distro == 'ubuntu' and (target.version == '18.04' or target.version == '16.04')):
+        # Currently we only build tests on Ubuntu 1{6,8}.04
         opt += ' --disable-tests'
 
     if target.debug: