[PATCH] D124153: [CMake] Change default CMAKE_BUILD_TYPE to Release
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 00:52:33 PDT 2022
jhenderson added a comment.
In D124153#3474991 <https://reviews.llvm.org/D124153#3474991>, @thieta wrote:
> In D124153#3471610 <https://reviews.llvm.org/D124153#3471610>, @erichkeane wrote:
>
>> I'm OK with #1 and #2, but note that the combo in #3 is not ALWAYS broken, just if you don't have enough memory or are running too many link jobs at the same time. I'm not sure we want it to be an 'error'.
>
> In my anecdotal information this configuration is almost ALWAYS broken. I just tested this on my system with 32GB RAM. With all defaults and it can't build correctly and dies when the linker runs out of memory. So our stock configuration is bad even on a pretty high-end system with bfd. This is using GCC 11.2.1 and binutils 2.38 - so pretty recent stuff.
>
> Maybe we can tweak the default configuration to not make this happen, but if we don't I really would like that error there (which can be circumvented with a flag).
I rarely, if ever, build the whole of LLVM on my Linux VM, because I don't need to, as I tend to work on only a small subset of the LLVM tools. This means that I rarely run into linker issues due to exhausted memory. I don't believe I ever bothered changing my linker default. Whilst my usage may not be the same as others, I want to raise it to highlight that the configuration isn't //always// broken - it mostly works just fine if you don't try and build everything at once.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124153/new/
https://reviews.llvm.org/D124153
More information about the llvm-commits
mailing list