(original) (raw)
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@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</div><div>Returns:{toolchain}/bin/clang++ --rtlib=compiler-rt --print-libgcc-file-name</div><div>Returns: toolchain/bin/clang++−−rtlib=compiler−rt−−print−libgcc−file−name</div><div>Returns:{toolchain}/lib/clang/8.0.0/lib/linux/libclang\_rt.builtins-armhf.aThe .../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.aSo which is correct, and which needs to change?I'm working with tip of the tree on all components.Thanks,Joel