[Openmp-commits] [PATCH] D38880: Detect whether the current system is a Linux system

Simon Convent via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Oct 25 06:56:15 PDT 2017

sconvent updated this revision to Diff 120241.
sconvent retitled this revision from "Detect available features of compiler in lit.cfg" to "Detect whether the current system is a Linux system".
sconvent edited the summary of this revision.
sconvent added a comment.

Only detect whether the current system is a Linux system. Other feature detection is now done in the testcases.



Index: runtime/test/lit.cfg
--- runtime/test/lit.cfg
+++ runtime/test/lit.cfg
@@ -92,6 +92,9 @@
     # for callback.h
     config.test_cflags += " -I " + config.test_source_root + "/ompt"
+if 'Linux' in config.operating_system:
+    config.available_features.add("linux")
 # substitutions
 if config.has_ompt:
     config.substitutions.append(("FileCheck", config.test_filecheck))

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38880.120241.patch
Type: text/x-patch
Size: 453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20171025/96ea6ba3/attachment.bin>

More information about the Openmp-commits mailing list