From f58a88d204202f5cea366bba63fb982a03c65149 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Mon, 6 Mar 2017 11:11:36 +0000 Subject: [Lit] Add system information (linux/darwim) to LIT configuration. Added 'not-*' features that exist if target operating system does not match a list of know operating systems. --- test/lit.cfg | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/lit.cfg b/test/lit.cfg index 31552882..dd2fbc13 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -151,3 +151,11 @@ else: # POSIX runtime feature if config.enable_posix_runtime: config.available_features.add('posix-runtime') + +# Target operating system features +supported_targets = ['linux', 'darwin'] +for target in supported_targets: + if config.target_triple.find(target) != -1: + config.available_features.add(target) + else: + config.available_features.add('not-{}'.format(target)) -- cgit 1.4.1