[libomptarget-nvptx] Test bitcode compiler flags and enable by default
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 16 May 2018 17:20:21 +0000 (17:20 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 16 May 2018 17:20:21 +0000 (17:20 +0000)
commit37bbe1a698e7ec10ee36f0b652d9ef22767ed03f
tree0c998e59fb460b2c47a34b65c65c3b981480b788
parentb7972f88c75fc9dc5ee8fd614346b069c9009092
[libomptarget-nvptx] Test bitcode compiler flags and enable by default

Move all logic related to selecting the bitcode compiler and linker
into a new file and dynamically test required compiler flags. This
also adds -fcuda-rdc for Clang trunk as previously attempted in D44992
which fixes the build.

As a result this change also enables building the library by default
if all prerequisites are met.

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

llvm-svn: 332494
openmp/README.rst
openmp/libomptarget/cmake/Modules/LibomptargetNVPTXBitcodeLibrary.cmake [new file with mode: 0644]
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt