[llvm-dev] llvm/compiler-rt install path

Joel Winarske via llvm-dev llvm-dev at lists.llvm.org
Fri Dec 21 11:17:41 PST 2018


Never mind...  I just figured out I had CMAKE_INSTALL_PREFIX for
compiler-rt set wrong.  When cross-compiling compiler-rt it should be:
-DCMAKE_INSTALL_PREFIX=${TOOLCHAIN_DIR}/lib/clang/8.0.0

Cheers,
Joel

On Fri, Dec 21, 2018 at 11:12 AM Joel Winarske <joel.winarske at gmail.com>
wrote:

> I'm trying to use a cross-compiled compiler-rt with libcxxabi.
>
> I'm seeing a conflict between what LLVM reports library location, and
> where compiler-rt installs it.
>
> Running this: ${toolchain}/bin/clang++ --rtlib=compiler-rt
> --print-libgcc-file-name
> Returns:
> ${toolchain}/lib/clang/8.0.0/lib/linux/libclang_rt.builtins-armhf.a
> The .../8.0.0/lib folder doesn't exist, only .../8.0.0/include post
> install.
>
> When cross-compiling compiler-rt, it installs to a different path:
> ${toolchain}/compiler-rt/lib/linux/libclang_rt.builtins-armhf.a
> ${toolchain}/compiler-rt/lib/linux/libclang_rt.profile-armhf.a
>
> So which is correct, and which needs to change?
>
> I'm working with tip of the tree on all components.
>
> Thanks,
> Joel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181221/53c40bc8/attachment.html>


More information about the llvm-dev mailing list