mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 18:53:07 +00:00
compiler: Reject using LLVM for csky and xtensa.
These backends are completely unusable at the moment; they can produce neither assembly files nor object files. So give a nicer error when users try to use them.
This commit is contained in:
parent
386b869ec4
commit
26bb429093
@ -153,7 +153,6 @@ pub fn hasLlvmSupport(target: std.Target, ofmt: std.Target.ObjectFormat) bool {
|
|||||||
.avr,
|
.avr,
|
||||||
.bpfel,
|
.bpfel,
|
||||||
.bpfeb,
|
.bpfeb,
|
||||||
.csky,
|
|
||||||
.hexagon,
|
.hexagon,
|
||||||
.loongarch32,
|
.loongarch32,
|
||||||
.loongarch64,
|
.loongarch64,
|
||||||
@ -181,7 +180,6 @@ pub fn hasLlvmSupport(target: std.Target, ofmt: std.Target.ObjectFormat) bool {
|
|||||||
.x86,
|
.x86,
|
||||||
.x86_64,
|
.x86_64,
|
||||||
.xcore,
|
.xcore,
|
||||||
.xtensa,
|
|
||||||
.nvptx,
|
.nvptx,
|
||||||
.nvptx64,
|
.nvptx64,
|
||||||
.lanai,
|
.lanai,
|
||||||
@ -190,6 +188,11 @@ pub fn hasLlvmSupport(target: std.Target, ofmt: std.Target.ObjectFormat) bool {
|
|||||||
.ve,
|
.ve,
|
||||||
=> true,
|
=> true,
|
||||||
|
|
||||||
|
// LLVM backend exists but can produce neither assembly nor object files.
|
||||||
|
.csky,
|
||||||
|
.xtensa,
|
||||||
|
=> false,
|
||||||
|
|
||||||
// No LLVM backend exists.
|
// No LLVM backend exists.
|
||||||
.kalimba,
|
.kalimba,
|
||||||
.propeller,
|
.propeller,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user