From 08fe42c4730b7a7b2c1d14045e0b1dcb408732e1 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 3 Feb 2015 23:49:58 +0000 Subject: [PATCH] add platform to LIT's available features git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@228071 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/test/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/libcxx/test/config.py b/test/libcxx/test/config.py index d7e24fc70..9c418b6e4 100644 --- a/test/libcxx/test/config.py +++ b/test/libcxx/test/config.py @@ -257,6 +257,14 @@ class Configuration(object): self.config.available_features.add( 'with_system_cxx_lib=%s' % self.config.target_triple) + # Insert the platform name into the available features as a lower case. + # Strip the '2' from linux2. + if sys.platform.startswith('linux'): + platform_name = 'linux' + else: + platform_name = sys.platform + self.config.available_features.add(platform_name.lower()) + # Some linux distributions have different locale data than others. # Insert the distributions name and name-version into the available # features to allow tests to XFAIL on them.