Skip to content

Commit

Permalink
make so only aarch64 build gets aarch64 asm
Browse files Browse the repository at this point in the history
  • Loading branch information
YiraSan committed Jan 3, 2025
1 parent a94ef31 commit bc06458
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ pub fn build(b: *std.Build) void {
else => unreachable,
});

kernel.addAssemblyFile(b.path("src/arch/aarch64/vector_table.s"));
switch (target.result.cpu.arch) {
.aarch64 => {
kernel.addAssemblyFile(b.path("src/arch/aarch64/vector_table.s"));
}
}

const build_options = b.addOptions();
build_options.addOption(Device, "device", device);
Expand Down

0 comments on commit bc06458

Please sign in to comment.