Add Xtensa as an experimental target

This commit is contained in:
Scott Mabin 2024-05-28 13:38:43 +01:00
parent 4cf5723dbe
commit c72fcfbc40
2 changed files with 8 additions and 1 deletions

View File

@ -188,6 +188,13 @@ pub fn initialize_available_targets() {
LLVMInitializeHexagonAsmPrinter,
LLVMInitializeHexagonAsmParser
);
init_target!(
llvm_component = "xtensa",
LLVMInitializeXtensaTargetInfo,
LLVMInitializeXtensaTarget,
LLVMInitializeXtensaTargetMC,
LLVMInitializeXtensaAsmParser
);
init_target!(
llvm_component = "webassembly",
LLVMInitializeWebAssemblyTargetInfo,

View File

@ -330,7 +330,7 @@ impl Step for Llvm {
let llvm_exp_targets = match builder.config.llvm_experimental_targets {
Some(ref s) => s,
None => "AVR;M68k;CSKY",
None => "AVR;M68k;CSKY;Xtensa",
};
let assertions = if builder.config.llvm_assertions { "ON" } else { "OFF" };