diff options
author | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2018-10-01 14:16:55 +0000 |
---|---|---|
committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2018-10-01 14:16:55 +0000 |
commit | be73d23db2027fdb14e4cfa3b35fc17fd50558a3 (patch) | |
tree | 967df020caf78126c869f24007ac2110a0aa7fbb /libomptarget/deviceRTLs | |
parent | 789cb443e4dc0094ebf282185ae5beeaf66900c5 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@343477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'libomptarget/deviceRTLs')
-rw-r--r-- | libomptarget/deviceRTLs/nvptx/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libomptarget/deviceRTLs/nvptx/CMakeLists.txt b/libomptarget/deviceRTLs/nvptx/CMakeLists.txt index 975dee6..1af0679 100644 --- a/libomptarget/deviceRTLs/nvptx/CMakeLists.txt +++ b/libomptarget/deviceRTLs/nvptx/CMakeLists.txt @@ -118,7 +118,7 @@ if(LIBOMPTARGET_DEP_CUDA_FOUND) libomptarget_say("Building CUDA LLVM bitcode offloading device RTL.") # Set flags for LLVM Bitcode compilation. - set(bc_flags ${LIBOMPTARGET_NVPTX_SELECTED_CUDA_COMPILER_FLAGS} -DOMPTARGET_NVPTX_TEST=0) + set(bc_flags ${LIBOMPTARGET_NVPTX_SELECTED_CUDA_COMPILER_FLAGS}) if(${LIBOMPTARGET_NVPTX_DEBUG}) set(bc_flags ${bc_flags} -DOMPTARGET_NVPTX_DEBUG=-1) else() |