[libc-commits] [libc] 77363f7 - [libc] Allow building the GPU targets that don't have CRT (#129945)
via libc-commits
libc-commits at lists.llvm.org
Wed Mar 5 14:39:38 PST 2025
Author: Joseph Huber
Date: 2025-03-05T16:39:35-06:00
New Revision: 77363f7518f7696fe18b9f824b4474aaf299b447
URL: https://github.com/llvm/llvm-project/commit/77363f7518f7696fe18b9f824b4474aaf299b447
DIFF: https://github.com/llvm/llvm-project/commit/77363f7518f7696fe18b9f824b4474aaf299b447.diff
LOG: [libc] Allow building the GPU targets that don't have CRT (#129945)
Summary:
If there's no subdirectory we can't make an alias. This allows it to at
least continue.
Added:
Modified:
libc/startup/gpu/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/startup/gpu/CMakeLists.txt b/libc/startup/gpu/CMakeLists.txt
index 9d0e0885dff93..fa326ef46a9d1 100644
--- a/libc/startup/gpu/CMakeLists.txt
+++ b/libc/startup/gpu/CMakeLists.txt
@@ -40,6 +40,9 @@ endfunction()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
add_subdirectory(${LIBC_TARGET_ARCHITECTURE})
+else()
+ message(WARNING "Cannot build 'crt1.o' for ${LIBC_TARGET_ARCHITECTURE} yet.")
+ return()
endif()
add_startup_object(
More information about the libc-commits
mailing list