[PATCH] D110126: [CMake] Enable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default on FreeBSD

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 21 10:17:39 PDT 2021


arichardson added a comment.

In D110126#3013056 <https://reviews.llvm.org/D110126#3013056>, @MaskRay wrote:

> In D110126#3011397 <https://reviews.llvm.org/D110126#3011397>, @arichardson wrote:
>
>> I think this should generally be safe but I have run into issues where the 64-bit sanitizer libraries were being linked with -m32, since the --target value is used for the clang runtime libdir instead of the adjusted triple.
>
> `-m32` works. For example, on my FreeBSD amd64, `-m32` picks `/usr/home/ray/llvm/Release/lib/clang/14.0.0/lib/i386-unknown-freebsd12.1/libclang_rt.asan.a`

Thanks for checking, the last time I tried I ended up posting https://reviews.llvm.org/D100054, but if that is no longer necessary I can abandon it instead of keeping it on my (much too long) list of things I need to get back to.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110126



More information about the llvm-commits mailing list