[libc-commits] [libc] 8fd9ec5 - [libc] Fix incorrect check for NVPTX backend
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Aug 28 05:24:51 PDT 2024
Author: Joseph Huber
Date: 2024-08-28T07:04:15-05:00
New Revision: 8fd9ec58173e7af394662ca7036fea667be8c843
URL: https://github.com/llvm/llvm-project/commit/8fd9ec58173e7af394662ca7036fea667be8c843
DIFF: https://github.com/llvm/llvm-project/commit/8fd9ec58173e7af394662ca7036fea667be8c843.diff
LOG: [libc] Fix incorrect check for NVPTX backend
Added:
Modified:
libc/cmake/modules/prepare_libc_gpu_build.cmake
Removed:
################################################################################
diff --git a/libc/cmake/modules/prepare_libc_gpu_build.cmake b/libc/cmake/modules/prepare_libc_gpu_build.cmake
index f3537f2634e5bf..14ae8f6e9eecd7 100644
--- a/libc/cmake/modules/prepare_libc_gpu_build.cmake
+++ b/libc/cmake/modules/prepare_libc_gpu_build.cmake
@@ -51,7 +51,7 @@ if(DEFINED LLVM_TARGETS_TO_BUILD AND LIBC_TARGET_ARCHITECTURE_IS_AMDGPU
AND NOT "AMDGPU" IN_LIST LLVM_TARGETS_TO_BUILD)
set(LIBC_GPU_TESTS_DISABLED TRUE)
message(STATUS "AMDGPU backend is not available, tests will not be built")
-elseif(DEFINED LLVM_TARGETS_TO_BUILD AND LIBC_TARGET_ARCHITECTURE_IS_AMDGPU
+elseif(DEFINED LLVM_TARGETS_TO_BUILD AND LIBC_TARGET_ARCHITECTURE_IS_NVPTX
AND NOT "NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
set(LIBC_GPU_TESTS_DISABLED TRUE)
message(STATUS "NVPTX backend is not available, tests will not be built")
More information about the libc-commits
mailing list