0

[zorg][RISCV] Add a qemu-user based builder

 1 year ago
source link: https://reviews.llvm.org/D143172
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Details
Summary

I spent a bit of time looking at the best way of improving our test coverage for RISC-V. I hope in this coming year more hardware suitable for this kind of workload will become available, but for now qemu-based builders seem the best option. This patch adds a builder using qemu user mode emulation (lower fidelity than full system emulation, but faster and makes better use of the host cores).

Currently, clang, clang-tools-extra, and lld are build and tested. It should be possible to enable libunwind, libcxx, and compiler-rt (as long as -DCOMPILER_RT_BUILD_SANITIZERS=OFF is set - the sanitizer tests won't run under qemu-user) once the following issues are resolved:

The plan for now is just to have it on the staging buildbot and see how it works out. I'd like to later augment or replace with a multi-stage bootstrap build, but this seems the most useful addition for now.

As the description above indicates, some further tweaks are expected - I'm curious whether _any_ change to the buildbot/**.py files in zorg require a scheduled buildbot master restart to take effect?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK