Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ pub fn build(b: *std.Build) void {

const exe = b.addExecutable(.{
.name = "nasm",
.target = target,
.optimize = optimize,
.root_module = b.createModule(.{
.target = target,
.optimize = optimize,
}),
});

exe.addIncludePath(b.path("include"));
Expand All @@ -28,7 +30,7 @@ pub fn build(b: *std.Build) void {
.NASM_VER = "2.16.01",
}));
exe.addConfigHeader(b.addConfigHeader(.{
.style = .{ .autoconf = b.path("config/config.h.in") },
.style = .{ .autoconf_undef = b.path("config/config.h.in") },
.include_path = "config/config.h",
}, .{
.ABORT_ON_PANIC = have(optimize == .Debug),
Expand Down