[PATCH] D132799: Make sure libLLVM users link with libatomic if needed

Aaron Puchert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 12 09:25:12 PDT 2022


aaronpuchert added a comment.

Hmm, seems that since D79219 <https://reviews.llvm.org/D79219> we use `find_package`, which has a habit of producing full paths instead of e.g. `-lz` for zlib, so for `llvm-config` we strip off the path and pretend we've been linking against the system library all along.

Seems like the easiest fix would be to stop the stripping and live with `llvm-config` printing a full path as well. As an alternative, we strip when the path is part of the standard linker search paths.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132799/new/

https://reviews.llvm.org/D132799



More information about the llvm-commits mailing list