[clang] [clang][unittest] BasicTests fail to link (PR #174513)
Michał Górny via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 10 02:55:13 PST 2026
mgorny wrote:
This change is incorrect and breaks building against LLVM dylib:
```
/usr/lib/gcc/aarch64-unknown-linux-gnu/15/../../../../aarch64-unknown-linux-gnu/bin/ld: cannot find -lLLVMTargetParser: No such file or directory
collect2: error: ld returned 1 exit status
```
`TargetParser` is part of the dylib, so it must be used via `LLVM_COMPONENTS`.
https://github.com/llvm/llvm-project/pull/174513
More information about the cfe-commits
mailing list