summaryrefslogtreecommitdiffstats
path: root/openmp/libomptarget/cmake/Modules/config-ix.cmake
diff options
context:
space:
mode:
authorGeorge Rokos <grokos@us.ibm.com>2017-01-25 21:27:24 +0000
committerGeorge Rokos <grokos@us.ibm.com>2017-01-25 21:27:24 +0000
commit2467df6e4f04e3d0e8e78d662473ba1b87c0a885 (patch)
tree4edaff3644109115394f27b5ecf914436b650aab /openmp/libomptarget/cmake/Modules/config-ix.cmake
parentc0fc25307143dd06c12fb2f5ebdb1dade7290ccf (diff)
downloadbcm5719-llvm-2467df6e4f04e3d0e8e78d662473ba1b87c0a885.tar.gz
bcm5719-llvm-2467df6e4f04e3d0e8e78d662473ba1b87c0a885.zip
[OpenMP] Initial implementation of OpenMP offloading library - libomptarget.
This is the patch upstreaming the device-agnostic part of libomptarget. Differential Revision: https://reviews.llvm.org/D14031 llvm-svn: 293094
Diffstat (limited to 'openmp/libomptarget/cmake/Modules/config-ix.cmake')
-rw-r--r--openmp/libomptarget/cmake/Modules/config-ix.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/openmp/libomptarget/cmake/Modules/config-ix.cmake b/openmp/libomptarget/cmake/Modules/config-ix.cmake
new file mode 100644
index 00000000000..914427006d3
--- /dev/null
+++ b/openmp/libomptarget/cmake/Modules/config-ix.cmake
@@ -0,0 +1,17 @@
+#
+#//===----------------------------------------------------------------------===//
+#//
+#// The LLVM Compiler Infrastructure
+#//
+#// This file is dual licensed under the MIT and the University of Illinois Open
+#// Source Licenses. See LICENSE.txt for details.
+#//
+#//===----------------------------------------------------------------------===//
+#
+
+include(CheckCCompilerFlag)
+include(CheckCXXCompilerFlag)
+
+# Checking C, CXX
+check_cxx_compiler_flag(-std=c++11 LIBOMPTARGET_HAVE_STD_CPP11_FLAG)
+check_c_compiler_flag(-Werror LIBOMPTARGET_HAVE_WERROR_FLAG)
OpenPOWER on IntegriCloud