llvm / llvm-zorg

Other
65 stars 94 forks source link

[LoongArch] Switch the toolchain used by the `clang-loongarch64-linux` builder from default to clang+lld #193

Closed SixWeining closed 4 months ago

SixWeining commented 4 months ago

Currently the default toolchain is used:

But recently we find that a new added llvm unittest (llvm/unittests/Frontend/OpenMPDecompositionTest.cpp) can't be compiled by the default toolchain (causing memory exhausted and killed by the system). Error:

command timed out: 1200 seconds without output running [b'ninja', b'check-all'], attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=1669.062469

See https://lab.llvm.org/staging/#/builders/5/builds/4199.

This patch fixex this issue by switching to clang+lld (v17.0.6).

An alternative (workaround) is setting useTwoStage=True and testStage1=False, but I think we'd better to create a dedicated builder for that in future.