diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2025-11-28 18:12:01 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2025-12-01 11:57:17 +0000 |
| commit | f4ff747cb709efeed3c1867060a81ae3ee72d474 (patch) | |
| tree | ca38534b7ac7bb01d18191156ec35b435d6abb9e /lib/libc/tests/nss/getusershell_test.c | |
| parent | 81385f622037a5b78fd4f8046163367fa607d37a (diff) | |
Remove TableGen objects from libllvm, fixing bad option registrationsstable/13
In 986e05bc2a18 I revamped the build for all the llvm subprojects. Among
others I added objects under contrib/llvm-project/llvm/lib/TableGen, but
I missed that upstream explicitly removes these when building the shared
llvm library:
https://github.com/llvm/llvm-project/blob/llvmorg-19.1.7/llvm/tools/llvm-shlib/CMakeLists.txt#L23
In 2e47f35be5dc I converted libllvm to a shared library. From that point
onwards, some of the global command line option objects registered in
llvm/lib/TableGen/Main.cpp conflict with similar objects in tools like
llvm-cov, llvm-as, etc.
This results in an error when running these tools: "CommandLine Error:
Option 'o' registered more than once!", followed by a fatal exit.
Fix this by removing the TableGen objects from libllvm. Note that we no
longer install any of the tblgen binaries, these are only used during
buildworld, and then in a statically linked form.
PR: 291233
MFC after: 3 days
(cherry picked from commit 9978553d0199e7ec0bdd1c44fc7f6c7b0c11e43b)
Diffstat (limited to 'lib/libc/tests/nss/getusershell_test.c')
0 files changed, 0 insertions, 0 deletions
