[PATCH] D24647: [CUDA] [test-suite] Always enable assert()s in our builds.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 12:57:31 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL282535: [CUDA] [test-suite] Always enable assert()s in our builds. (authored by jlebar).

Changed prior to commit:
  https://reviews.llvm.org/D24647?vs=71595&id=72695#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24647

Files:
  test-suite/trunk/External/CUDA/CMakeLists.txt
  test-suite/trunk/External/CUDA/assert.cu

Index: test-suite/trunk/External/CUDA/CMakeLists.txt
===================================================================
--- test-suite/trunk/External/CUDA/CMakeLists.txt
+++ test-suite/trunk/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()
Index: test-suite/trunk/External/CUDA/assert.cu
===================================================================
--- test-suite/trunk/External/CUDA/assert.cu
+++ test-suite/trunk/External/CUDA/assert.cu
@@ -1,5 +1,3 @@
-#undef NDEBUG
-
 #include <assert.h>
 #include <stdio.h>
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24647.72695.patch
Type: text/x-patch
Size: 722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160927/620931da/attachment.bin>


More information about the llvm-commits mailing list