[llvm] [libc][bazel] Mark socket functions weak (PR #115088)

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 23:28:54 PST 2024


vonosmas wrote:

We also define `weak = True` for various non-syscall wrappers, such as `memset`, `memcmp`, etc.

Is there any reason why we shouldn't just define all libc functions as "weak"? Would this mean that in static link mode we allow the user to provide their own implementations / wrappers / proxies of libc functions? (they would also be able to call real implementations by calling a namespace-d version, I think?)



https://github.com/llvm/llvm-project/pull/115088


More information about the llvm-commits mailing list