You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
microzig/build.zig

21 lines
602 B
Zig

const std = @import("std");
const microzig = @import("deps/microzig/src/main.zig");
const chips = @import("src/chips.zig");
pub fn build(b: *std.build.Builder) void {
const optimize = b.standardOptimizeOption(.{});
inline for (@typeInfo(chips).Struct.decls) |decl| {
if (!decl.is_pub)
continue;
const exe = microzig.addEmbeddedExecutable(
b,
decl.name ++ ".minimal",
"test/programs/minimal.zig",
.{ .chip = @field(chips, decl.name) },
.{ .optimize = optimize },
);
exe.install();
}
}