aboutsummaryrefslogtreecommitdiff
path: root/src/target.zig
diff options
context:
space:
mode:
authorFelix Queißner <git@mq32.de>2024-10-04 22:53:28 +0200
committerGitHub <noreply@github.com>2024-10-04 13:53:28 -0700
commit7c74edec8d7d97677033d8a688e02ee32d82ab43 (patch)
tree8704f54815734e78861274fe8734b263082d07c5 /src/target.zig
parent3e62cb5c90608580558fff1af24af68735778392 (diff)
downloadzig-7c74edec8d7d97677033d8a688e02ee32d82ab43.tar.gz
zig-7c74edec8d7d97677033d8a688e02ee32d82ab43.zip
Adds new cpu architectures propeller1 and propeller2. (#21563)
* Adds new cpu architectures propeller1 and propeller2. These cpu architectures allow targeting the Parallax Propeller 1 and Propeller 2, which are both very special microcontrollers with 512 registers and 8 cpu cores. Resolves #21559 * Adds std.elf.EM.PROPELLER and std.elf.EM.PROPELLER2 * Fixes missing switch prongs in src/codegen/llvm.zig * Fixes order in std.Target.Arch --------- Co-authored-by: Felix "xq" Queißner <git@random-projects.net>
Diffstat (limited to 'src/target.zig')
-rw-r--r--src/target.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target.zig b/src/target.zig
index 7667303704..5847d3d8cd 100644
--- a/src/target.zig
+++ b/src/target.zig
@@ -168,6 +168,8 @@ pub fn hasLlvmSupport(target: std.Target, ofmt: std.Target.ObjectFormat) bool {
// No LLVM backend exists.
.kalimba,
.spu_2,
+ .propeller1,
+ .propeller2,
=> false,
};
}