Enable building of unit tests on macOS.
authorCarl Hetherington <cth@carlh.net>
Tue, 29 Sep 2020 18:50:41 +0000 (20:50 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 12 Oct 2020 15:33:27 +0000 (17:33 +0200)
cscript

diff --git a/cscript b/cscript
index 3540edad411fbada0b8a81d833a74effd86f8f17..293d69b7ccb1b41f5b8c702fb05ded03cb28e3b0 100644 (file)
--- a/cscript
+++ b/cscript
@@ -394,8 +394,9 @@ option_defaults = { "gui": True, "variant": None }
 def configure_options(target, options):
     opt = ' --warnings-are-errors'
 
-    if not (target.platform == 'linux' and target.distro == 'ubuntu' and 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.platform == 'osx')):
+        # Currently we only build tests on Ubuntu 18.04 and macOS
         opt += ' --disable-tests'
 
     if target.debug: