mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Teach rustc about the Xtensa arch.
This commit is contained in:
parent
c72fcfbc40
commit
b37a448616
@ -23,6 +23,7 @@ const OPTIONAL_COMPONENTS: &[&str] = &[
|
|||||||
"nvptx",
|
"nvptx",
|
||||||
"hexagon",
|
"hexagon",
|
||||||
"riscv",
|
"riscv",
|
||||||
|
"xtensa",
|
||||||
"bpf",
|
"bpf",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -155,6 +155,12 @@ extern "C" void LLVMRustTimeTraceProfilerFinish(const char* FileName) {
|
|||||||
#define SUBTARGET_SPARC
|
#define SUBTARGET_SPARC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef LLVM_COMPONENT_XTENSA
|
||||||
|
#define SUBTARGET_XTENSA SUBTARGET(XTENSA)
|
||||||
|
#else
|
||||||
|
#define SUBTARGET_XTENSA
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef LLVM_COMPONENT_HEXAGON
|
#ifdef LLVM_COMPONENT_HEXAGON
|
||||||
#define SUBTARGET_HEXAGON SUBTARGET(Hexagon)
|
#define SUBTARGET_HEXAGON SUBTARGET(Hexagon)
|
||||||
#else
|
#else
|
||||||
@ -180,6 +186,7 @@ extern "C" void LLVMRustTimeTraceProfilerFinish(const char* FileName) {
|
|||||||
SUBTARGET_MSP430 \
|
SUBTARGET_MSP430 \
|
||||||
SUBTARGET_SPARC \
|
SUBTARGET_SPARC \
|
||||||
SUBTARGET_HEXAGON \
|
SUBTARGET_HEXAGON \
|
||||||
|
SUBTARGET_XTENSA \
|
||||||
SUBTARGET_RISCV \
|
SUBTARGET_RISCV \
|
||||||
SUBTARGET_LOONGARCH \
|
SUBTARGET_LOONGARCH \
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user