This is an archive of the discontinued LLVM Phabricator instance.

[VE] Change to not use standalone build
ClosedPublic

Authored by kaz7 on Feb 26 2023, 7:42 PM.

Details

Summary

The LLVM's main branch prohibits standalone build for a while. However,
LLVM doesn't support bootstrap crt builds. The patch to solve this problem
is https://reviews.llvm.org/D89492, but it is not merged yet.

So, compiling LLVM for VE used to require several tricks. Recently, a
patch at https://reviews.llvm.org/D137024 breaks such tricks. As a
result, VE's buildbot was not possible to perform tests, particulaly a
check-compiler-rt for VE. This patch udpate buildbot script to perform
tests again on VE's buildbot.

Event Timeline

kaz7 created this revision.Feb 26 2023, 7:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 26 2023, 7:42 PM
kaz7 requested review of this revision.Feb 26 2023, 7:42 PM
kaz7 added a comment.Feb 26 2023, 7:47 PM

Hi again, this is a following patch of https://reviews.llvm.org/D143441.

Previous patch fixes compile errors, but it doesn't work with check-compiler-rt after https://reviews.llvm.org/D137024 modification. I'm not sure why, but compiler-rt is not possible to find correct place of llvm-lit after changing to use find_package in standalone building mode.

So, this patch modify to compile llvm and compiler-rt at once in the second build stage. Using this way, we can correctly run check-compiler-rt for VE.

This revision is now accepted and ready to land.Mar 3 2023, 11:32 PM
This revision was automatically updated to reflect the committed changes.