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

578 views
Skip to first unread message

Joel Winarske via llvm-dev

unread,
Dec 21, 2018, 2:12:46 PM12/21/18
to llvm...@lists.llvm.org
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

Joel Winarske via llvm-dev

unread,
Dec 21, 2018, 2:18:02 PM12/21/18
to llvm...@lists.llvm.org
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
Reply all
Reply to author
Forward
0 new messages