[libc-commits] [libc] a704c31 - [libc] Add missing dependencies to RISC-V startup implementation

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Mar 16 07:13:32 PDT 2023


Author: Joseph Huber
Date: 2023-03-16T09:13:18-05:00
New Revision: a704c312f11f5b64790b8697b9c31bd75681a144

URL: https://github.com/llvm/llvm-project/commit/a704c312f11f5b64790b8697b9c31bd75681a144
DIFF: https://github.com/llvm/llvm-project/commit/a704c312f11f5b64790b8697b9c31bd75681a144.diff

LOG: [libc] Add missing dependencies to RISC-V startup implementation

Summary:
Just like the last patch, the threads and envrion dependencies were
missing. This lead to linker failures when building the tests.

Added: 
    

Modified: 
    libc/startup/linux/riscv64/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/startup/linux/riscv64/CMakeLists.txt b/libc/startup/linux/riscv64/CMakeLists.txt
index 14d6409af6cc1..14efe0e58f302 100644
--- a/libc/startup/linux/riscv64/CMakeLists.txt
+++ b/libc/startup/linux/riscv64/CMakeLists.txt
@@ -6,10 +6,12 @@ add_startup_object(
     libc.config.linux.app_h
     libc.include.sys_mman
     libc.include.sys_syscall
+    libc.src.__support.threads.thread
     libc.src.__support.OSUtil.osutil
     libc.src.stdlib.exit
     libc.src.stdlib.atexit
     libc.src.string.memory_utils.memcpy_implementation
+    libc.src.unistd.environ
   COMPILE_OPTIONS
     -fno-omit-frame-pointer
     -ffreestanding # To avoid compiler warnings about calling the main function.


        


More information about the libc-commits mailing list