Skip to content

Commit 77363f7

Browse files
authored
[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.
1 parent 275eab9 commit 77363f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc/startup/gpu/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ endfunction()
4040

4141
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
4242
add_subdirectory(${LIBC_TARGET_ARCHITECTURE})
43+
else()
44+
message(WARNING "Cannot build 'crt1.o' for ${LIBC_TARGET_ARCHITECTURE} yet.")
45+
return()
4346
endif()
4447

4548
add_startup_object(

0 commit comments

Comments
 (0)