diff options
| author | Eric Fiselier <eric@efcs.ca> | 2015-02-03 23:49:58 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2015-02-03 23:49:58 +0000 |
| commit | 3d2111e43b46cf25db4905026ba5855b578c14a7 (patch) | |
| tree | 3cf3f67d38e1c5bb3437254de90cef38680f8989 /libcxx/test | |
| parent | 836a63576433da671135fbfaaf1b3108c1e2383c (diff) | |
| download | bcm5719-llvm-3d2111e43b46cf25db4905026ba5855b578c14a7.tar.gz bcm5719-llvm-3d2111e43b46cf25db4905026ba5855b578c14a7.zip | |
add platform to LIT's available features
llvm-svn: 228071
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/libcxx/test/config.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/test/config.py b/libcxx/test/libcxx/test/config.py index d7e24fc7025..9c418b6e47a 100644 --- a/libcxx/test/libcxx/test/config.py +++ b/libcxx/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. |

