[libc-commits] [libc] 6822156 - [libc] Widen the riscv64 full build config.
Siva Chandra via libc-commits
libc-commits at lists.llvm.org
Wed Mar 8 15:05:47 PST 2023
Author: Siva Chandra
Date: 2023-03-08T23:05:00Z
New Revision: 6822156a58ffc4e8c159f7adef5657e7639a588a
URL: https://github.com/llvm/llvm-project/commit/6822156a58ffc4e8c159f7adef5657e7639a588a
DIFF: https://github.com/llvm/llvm-project/commit/6822156a58ffc4e8c159f7adef5657e7639a588a.diff
LOG: [libc] Widen the riscv64 full build config.
Added:
Modified:
libc/config/linux/riscv64/entrypoints.txt
libc/config/linux/riscv64/headers.txt
Removed:
################################################################################
diff --git a/libc/config/linux/riscv64/entrypoints.txt b/libc/config/linux/riscv64/entrypoints.txt
index 303625ac60cc..625f7683bcc8 100644
--- a/libc/config/linux/riscv64/entrypoints.txt
+++ b/libc/config/linux/riscv64/entrypoints.txt
@@ -324,6 +324,62 @@ set(TARGET_LIBM_ENTRYPOINTS
libc.src.math.truncl
)
+if(LLVM_LIBC_FULL_BUILD)
+ list(APPEND TARGET_LIBC_ENTRYPOINTS
+ # network.h entrypoints
+ libc.src.network.htonl
+ libc.src.network.htons
+ libc.src.network.ntohl
+ libc.src.network.ntohs
+
+ # sched.h entrypoints
+ libc.src.sched.__sched_getcpucount
+
+ # stdio.h entrypoints
+ libc.src.stdio.clearerr
+ libc.src.stdio.clearerr_unlocked
+ libc.src.stdio.fclose
+ libc.src.stdio.flockfile
+ libc.src.stdio.feof
+ libc.src.stdio.feof_unlocked
+ libc.src.stdio.ferror
+ libc.src.stdio.ferror_unlocked
+ libc.src.stdio.fgetc
+ libc.src.stdio.fflush
+ libc.src.stdio.fopen
+ libc.src.stdio.fputc
+ libc.src.stdio.fputs
+ libc.src.stdio.fopencookie
+ libc.src.stdio.fread
+ libc.src.stdio.fread_unlocked
+ libc.src.stdio.fseek
+ libc.src.stdio.funlockfile
+ libc.src.stdio.fwrite
+ libc.src.stdio.fwrite_unlocked
+ libc.src.stdio.fprintf
+ libc.src.stdio.printf
+ libc.src.stdio.putc
+ libc.src.stdio.putchar
+ libc.src.stdio.puts
+ libc.src.stdio.stderr
+ libc.src.stdio.stdin
+ libc.src.stdio.stdout
+
+ # time.h entrypoints
+ libc.src.time.asctime
+ libc.src.time.asctime_r
+ libc.src.time.clock_gettime
+ libc.src.time.clock
+ libc.src.time.
diff time
+ libc.src.time.gettimeofday
+ libc.src.time.gmtime
+ libc.src.time.gmtime_r
+ libc.src.time.mktime
+ libc.src.time.nanosleep
+ libc.src.time.time
+ )
+endif()
+
set(TARGET_LLVMLIBC_ENTRYPOINTS
${TARGET_LIBC_ENTRYPOINTS}
${TARGET_LIBM_ENTRYPOINTS}
diff --git a/libc/config/linux/riscv64/headers.txt b/libc/config/linux/riscv64/headers.txt
index 415c47f08f3b..62f36caaa38b 100644
--- a/libc/config/linux/riscv64/headers.txt
+++ b/libc/config/linux/riscv64/headers.txt
@@ -4,6 +4,8 @@ set(TARGET_PUBLIC_HEADERS
libc.include.inttypes
libc.include.math
libc.include.sched
+ libc.include.stdio
libc.include.stdlib
libc.include.string
+ libc.include.time
)
More information about the libc-commits
mailing list