llvm/compiler-rt install path

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

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