<div dir="ltr"><div>They should be searched automatically, see:</div><div><br></div><div><a href="https://github.com/llvm/llvm-project/blob/03f7b13d4452e3ee7749ed0cd354071eced25502/clang/lib/Driver/ToolChain.cpp#L83">https://github.com/llvm/llvm-project/blob/03f7b13d4452e3ee7749ed0cd354071eced25502/clang/lib/Driver/ToolChain.cpp#L83</a><br></div><div><a href="https://github.com/llvm/llvm-project/blob/03f7b13d4452e3ee7749ed0cd354071eced25502/clang/lib/Driver/ToolChain.cpp#L485">https://github.com/llvm/llvm-project/blob/03f7b13d4452e3ee7749ed0cd354071eced25502/clang/lib/Driver/ToolChain.cpp#L485</a><br></div><div><br></div><div>What error are you getting?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 7, 2021 at 12:05 AM Tobias Hieta via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I am converting our build-system to use runtime builds (so that<br>
runtimes are built with the newly built compiler) by setting<br>
LLVM_ENABLE_RUNTIMES=libcxx;compiler-rt and I am running into some<br>
problems with the default search directories and getting a "out of the<br>
box" working toolchain.<br>
<br>
By default the runtimes are installed into<br>
<root>/lib/x86_64-unknown-linux-gnu/... and<br>
<root>/lib/clang/12.0.0/lib/x86_64-unknown-linux-gnu<br>
<br>
Trying to use clang or clang++ later will not automatically search<br>
those directories. With the old way of doing this (without runtime<br>
builds) it would install the libraries and headers in places where<br>
clang/clang++ would automatically find it.<br>
<br>
I have tried the CMake option LLVM_ENABLE_PER_TARGET_RUNTIME_DIR and<br>
set it to "OFF" but this seems not to change anything.<br>
<br>
Is there a way to get clang to automatically search these dirs or<br>
control the install directory?<br>
<br>
Thanks,<br>
Tobias<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>