[libc-commits] [libc] efe96c5 - Revert "[libc] Add realpath to linux entrypoints" (#215156)
via libc-commits
libc-commits at lists.llvm.org
Sun Aug 9 15:35:43 PDT 2026
Author: Jackson Stogel
Date: 2026-08-09T22:35:38Z
New Revision: efe96c53557041be11e7fb4d43e6448cc09f6062
URL: https://github.com/llvm/llvm-project/commit/efe96c53557041be11e7fb4d43e6448cc09f6062
DIFF: https://github.com/llvm/llvm-project/commit/efe96c53557041be11e7fb4d43e6448cc09f6062.diff
LOG: Revert "[libc] Add realpath to linux entrypoints" (#215156)
Reverts llvm/llvm-project#212925, the tests assume that `/tmp` is a
real, valid directory on the system, which is not true for all
buildbots. `libc-riscv32-qemu-yocto-fullbuild-dbg` in particular seems
to have a symlink or similar from `/tmp` to `/var/volatile/tmp`. See
https://github.com/llvm/llvm-project/pull/212925#issuecomment-5234167255.
Added:
Modified:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/riscv/entrypoints.txt
libc/config/linux/x86_64/entrypoints.txt
Removed:
################################################################################
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index ab3ca5965b5e9..45baa15bb4532 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -217,7 +217,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdlib.qsort
libc.src.stdlib.qsort_r
libc.src.stdlib.rand
- libc.src.stdlib.realpath
libc.src.stdlib.srand
libc.src.stdlib.strfromd
libc.src.stdlib.strfromf
diff --git a/libc/config/linux/riscv/entrypoints.txt b/libc/config/linux/riscv/entrypoints.txt
index 24902ce1938bc..f95cfd3820708 100644
--- a/libc/config/linux/riscv/entrypoints.txt
+++ b/libc/config/linux/riscv/entrypoints.txt
@@ -241,7 +241,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdlib.qsort
libc.src.stdlib.qsort_r
libc.src.stdlib.rand
- libc.src.stdlib.realpath
libc.src.stdlib.srand
libc.src.stdlib.strfromd
libc.src.stdlib.strfromf
@@ -1565,6 +1564,10 @@ if(LLVM_LIBC_FULL_BUILD)
endif()
if(LLVM_LIBC_ENABLE_EXPERIMENTAL_ENTRYPOINTS)
+ list(APPEND TARGET_LIBC_ENTRYPOINTS
+ libc.src.stdlib.realpath
+ )
+
if(LLVM_LIBC_FULL_BUILD)
list(APPEND TARGET_LIBC_ENTRYPOINTS
# net/if.h entrypoints
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index 7f6bca66b3735..e257bc19b2920 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -241,7 +241,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdlib.qsort
libc.src.stdlib.qsort_r
libc.src.stdlib.rand
- libc.src.stdlib.realpath
libc.src.stdlib.srand
libc.src.stdlib.strfromd
libc.src.stdlib.strfromf
@@ -1574,6 +1573,10 @@ if(LLVM_LIBC_FULL_BUILD)
endif()
if(LLVM_LIBC_ENABLE_EXPERIMENTAL_ENTRYPOINTS)
+ list(APPEND TARGET_LIBC_ENTRYPOINTS
+ libc.src.stdlib.realpath
+ )
+
if(LLVM_LIBC_FULL_BUILD)
list(APPEND TARGET_LIBC_ENTRYPOINTS
# net/if.h entrypoints
More information about the libc-commits
mailing list