[compiler-rt] r336633 - Add lowercase OS name feature

Vlad Tsyrklevich via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 9 19:02:21 PDT 2018


Author: vlad.tsyrklevich
Date: Mon Jul  9 19:02:21 2018
New Revision: 336633

URL: http://llvm.org/viewvc/llvm-project?rev=336633&view=rev
Log:
Add lowercase OS name feature

Summary:
Some tests already make use of OS feature names, e.g. 'linux' and 'freebsd',
but they are not actually currently set by lit.

Reviewers: pcc, eugenis

Reviewed By: eugenis

Subscribers: emaste, krytarowski, delcypher, llvm-commits, #sanitizers

Differential Revision: https://reviews.llvm.org/D49115

Modified:
    compiler-rt/trunk/test/lit.common.cfg

Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=336633&r1=336632&r2=336633&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Mon Jul  9 19:02:21 2018
@@ -91,8 +91,10 @@ config.environment['PATH'] = path
 if platform.system() == 'Windows' and '-win' in config.target_triple:
   config.environment['LIB'] = os.environ['LIB']
 
+config.available_features.add(config.host_os.lower())
+
 if re.match(r'^x86_64.*-linux', config.target_triple):
-      config.available_features.add("x86_64-linux")
+  config.available_features.add("x86_64-linux")
 
 # Use ugly construction to explicitly prohibit "clang", "clang++" etc.
 # in RUN lines.




More information about the llvm-commits mailing list