test: fix(main/llvm): link LLVM readelf to libLLVM statically#28936
test: fix(main/llvm): link LLVM readelf to libLLVM statically#28936robertkirkman wants to merge 1 commit into
readelf to libLLVM statically#28936Conversation
- Experiment for testing related to termux#28904
TomJo2000
left a comment
There was a problem hiding this comment.
6 Megs seems like a worthwhile tradeoff to fix the performance issue of llvm readelf/readobj until we have a more permanent answer/fix from upstream about the root cause.
|
Maybe consider using LLVM_TOOL_LLVM_DRIVER_BUILD to build the whole llvm/clang toolchain as a statically linked package independent of libLLVM? |
I have just tested that locally a while ago, and unfortunately it didn't really work properly, doing that causes some problems but the major one is that it causes the size of lots of things to get really big and take up an additional 4 GB of space. setting only |
|
Also, I need to find out, from other people, does installing the packages from the CI artifact from this PR make the also, the |
LLVM_TOOL_LLVM_DRIVER_BUILD is designed to address this problem. clang, lld, and llvm-tools will be built into a single busybox-style executable to avoid bloat. see https://reviews.llvm.org/D109977 |
|
I tried this locally: Would you like me to upload my local test version into this PR and build it here, so that you can download the artifact and see what problem happened? |
I understand. It's building a full LLVM here, not just toolchain-only. Many non-toolchain llvm-tools lack support of LLVM_TOOL_LLVM_DRIVER_BUILD. |
|
For me with this PR
|
|
And... this was the wrong PR, this was meant for #29045. |
lddin Termux is much slower thanlddin GNU/Linux (and LLVMreadelfis slower than GNUreadelf) #28904