[Openmp-commits] [PATCH] D38880: Detect available features of compiler in lit.cfg
Simon Convent via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Oct 13 03:38:55 PDT 2017
sconvent created this revision.
Detect available features of compiler in lit.cfg
https://reviews.llvm.org/D38880
Files:
runtime/test/lit.cfg
Index: runtime/test/lit.cfg
===================================================================
--- runtime/test/lit.cfg
+++ runtime/test/lit.cfg
@@ -92,6 +92,18 @@
# for callback.h
config.test_cflags += " -I " + config.test_source_root + "/ompt"
+if re.search('clang', config.test_compiler) is not None or re.search('icc', config.test_compiler) is not None:
+ config.available_features.add("cancel")
+ config.available_features.add("taskgroup")
+ config.available_features.add("dependences")
+ config.available_features.add("flush")
+ config.available_features.add("taskyield")
+ config.available_features.add("master_callback")
+ config.available_features.add("single_callback")
+
+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.118895.patch
Type: text/x-patch
Size: 911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20171013/511ed380/attachment.bin>
More information about the Openmp-commits
mailing list