From 4b04547e710efa8cbad489cae26c8351dad1716c Mon Sep 17 00:00:00 2001 From: jinge90 Date: Tue, 19 May 2026 15:43:08 +0800 Subject: [PATCH] Fix unused parameter for add_bitcode_entrypoint_library for GPU Libc Signed-off-by: jinge90 --- libc/cmake/modules/LLVMLibCLibraryRules.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/cmake/modules/LLVMLibCLibraryRules.cmake b/libc/cmake/modules/LLVMLibCLibraryRules.cmake index 9f8c6c0db8c6f..2df8f49100b99 100644 --- a/libc/cmake/modules/LLVMLibCLibraryRules.cmake +++ b/libc/cmake/modules/LLVMLibCLibraryRules.cmake @@ -83,7 +83,7 @@ endfunction() # A rule to build a library from a collection of entrypoint objects and bundle # it in a single LLVM-IR bitcode file. # Usage: -# add_gpu_entrypoint_library( +# add_bitcode_entrypoint_library( # DEPENDS # ) function(add_bitcode_entrypoint_library target_name base_target_name) @@ -116,6 +116,7 @@ function(add_bitcode_entrypoint_library target_name base_target_name) target_link_options(${target_name} PRIVATE "${LIBC_COMPILE_OPTIONS_DEFAULT}" "-r" "-nostdlib" "-flto" "-Wl,--lto-emit-llvm") endif() + add_dependencies(${base_target_name} ${target_name}) endfunction(add_bitcode_entrypoint_library) # A rule to build a library from a collection of entrypoint objects.