[libc] Allow NVPTX targets to build in debug mode
Summary:
This previously did not work, but recent improvements to the NVPTX
backend allow this to work now.
GitOrigin-RevId: 6de97e9a679aaf3148d467e4d4e1ea99ba55d555
diff --git a/cmake/modules/prepare_libc_gpu_build.cmake b/cmake/modules/prepare_libc_gpu_build.cmake
index e20591b..937bd22 100644
--- a/cmake/modules/prepare_libc_gpu_build.cmake
+++ b/cmake/modules/prepare_libc_gpu_build.cmake
@@ -72,11 +72,6 @@
endif()
set(LIBC_GPU_TARGET_ARCHITECTURE "${gpu_test_architecture}")
-# The NVPTX backend cannot currently handle objects created in debug mode.
-if(LIBC_TARGET_ARCHITECTURE_IS_NVPTX AND CMAKE_BUILD_TYPE STREQUAL "Debug")
- set(LIBC_GPU_TESTS_DISABLED TRUE)
-endif()
-
# Identify the GPU loader utility used to run tests.
set(LIBC_GPU_LOADER_EXECUTABLE "" CACHE STRING "Executable for the GPU loader.")
if(LIBC_GPU_LOADER_EXECUTABLE)