Skip to content

main/llvm14: use cmd:llvm14-tblgen when cross-compiling

Ghost User requested to merge (removed):llvm14 into master

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.

Merge request reports

Loading