summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-29 20:50:41 +0200
committerCarl Hetherington <cth@carlh.net>2020-10-12 17:33:27 +0200
commit7e783c3ac62e1000775843234da5f8a78f50b6af (patch)
tree39e8100141efae6ed5f3d638c22edea4edb29448
parent0055d0a8589d5cc01b7db1a6b424a33cf7070e51 (diff)
Enable building of unit tests on macOS.
-rw-r--r--cscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/cscript b/cscript
index 3540edad4..293d69b7c 100644
--- 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: