<div dir="auto">Thank you thank you. Im heading for split dwarf. Im pondering g1 debug options as I dont need gdb very much mostly lineinfos would do for asserts and such.<div dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto">Pawel Kunio</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pt., 16.04.2021, 00:58 użytkownik Joerg Sonnenberger via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> napisał:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Apr 15, 2021 at 10:05:51PM +0200, pawel k. via llvm-dev wrote:<br>
> Hello,<br>
> Im trying to build trunk clang in debug version on oldish ubuntu with low<br>
> mem. Linking lli takes ages and fails on low mem. Is there a chance<br>
> building would succeed if i used lld instead of ld? If so is there an<br>
> option either to force lld or whole clang toolchain use in cmake instead of<br>
> default gcc (both gcc and clang are avail on system)? Otherwise I think ill<br>
> stick with release.<br>
<br>
Your best options for that are using DWARF fusion<br>
(-DLLVM_USE_SPLIT_DWARF) or as separate shared libraries<br>
(-DBUILD_SHARED_LIBS). The former will punish the gdb load time and the<br>
latter will penalize execution speed.<br>
<br>
Joerg<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>