[CMake] Detect information about test compiler
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 30 Nov 2017 17:08:31 +0000 (17:08 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 30 Nov 2017 17:08:31 +0000 (17:08 +0000)
commitfc473dee98fd8d2756983b9d039cd439e5a78f24
tree24668270a601fa1c704f3b33a4895fec4c08f3ff
parentc7832045d5e8508713cd3353ea75ff8486add49f
[CMake] Detect information about test compiler

Perform a nested CMake invocation to avoid writing our own parser
for compiler versions when we are not testing the in-tree compiler.
Use the extracted information to mark a test as unsupported that
hangs with Clang prior to version 4.0.1 and restrict tests for
libomptarget to Clang version 6.0.0 and later.

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

llvm-svn: 319448
openmp/CMakeLists.txt
openmp/cmake/DetectTestCompiler/CMakeLists.txt [new file with mode: 0644]
openmp/cmake/OpenMPTesting.cmake
openmp/libomptarget/test/CMakeLists.txt
openmp/runtime/test/lit.cfg
openmp/runtime/test/lit.site.cfg.in
openmp/runtime/test/misc_bugs/cancellation_for_sections.c
openmp/runtime/test/tasking/kmp_task_reduction_nest.cpp