[libomptarget-nvptx] Enable asserts in bclib
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 1 Oct 2018 14:16:55 +0000 (14:16 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 1 Oct 2018 14:16:55 +0000 (14:16 +0000)
commita762bfc03a05a496dbd688c3ccd59c7923fd38c1
tree6a1c271ea42d611add99d15ee605a3422825ddf3
parenta1100e6b9a61cb3ec39f423569ff8cabd680ffba
[libomptarget-nvptx] Enable asserts in bclib

If the user requested LIBOMPTARGET_NVPTX_DEBUG, include asserts in
the bitcode library. Everything else will have very unpleasent
effects because asserts will appear when falling back to the static
library libomptarget-nvptx.a.

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

llvm-svn: 343477
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt