[PATCH] D24647: [CUDA] [test-suite] Always enable assert()s in our builds.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 21:16:54 PDT 2016
jlebar created this revision.
jlebar added reviewers: tra, jhen.
jlebar added a subscriber: llvm-commits.
Herald added subscribers: mgorny, beanz.
https://reviews.llvm.org/D24647
Files:
External/CUDA/CMakeLists.txt
External/CUDA/assert.cu
Index: External/CUDA/assert.cu
===================================================================
--- External/CUDA/assert.cu
+++ External/CUDA/assert.cu
@@ -1,5 +1,3 @@
-#undef NDEBUG
-
#include <assert.h>
#include <stdio.h>
Index: External/CUDA/CMakeLists.txt
===================================================================
--- External/CUDA/CMakeLists.txt
+++ External/CUDA/CMakeLists.txt
@@ -282,6 +282,9 @@
COMMENT "Build all CUDA tests.")
endmacro(create_cuda_tests)
+# We always want asserts() to run.
+list(APPEND CPPFLAGS "-UNDEBUG")
+
if(TEST_SUITE_CUDA_ROOT)
create_cuda_tests()
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24647.71595.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160916/af62e5eb/attachment.bin>
More information about the llvm-commits
mailing list