The source project of this merge request has been removed.
main/llvm14: use cmd:llvm14-tblgen when cross-compiling
This patch ensures the matching version of llvm-tblgen
(i.e. llvm14-tblgen
) is used when cross-compiling. This resolves the following error when bootstrapping (due to main/llvm15 becoming the default version):
d:180:1: error: Record `OMPC_Write' does not have a field named `aliases'!
def OMPC_Write : Clause<"write"> { let clangClass = "OMPWriteClause"; }
^
This change also enables broader cross-building support by checking if $CBUILD != $CHOST
rather than just relying on $BOOTSTRAP
which is typically only set when running scripts/bootstrap.sh.