Skip to content

Commit 9140d21

Browse files
author
sjdh02
committed
bump build.zig to work with new targets
1 parent c38b697 commit 9140d21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.zig

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ pub fn build(b: *Builder) !void {
77
const want_pty = b.option(bool, "pty", "Create a separate serial port path") orelse false;
88

99
const mode = b.standardReleaseOptions();
10-
const exe = b.addStaticExecutable("tOS", "src/kernel.zig");
10+
const exe = b.addStaticExecutable("trOS", "src/kernel.zig");
1111
exe.addAssemblyFile("src/asm/boot.S");
12-
exe.addIncludeDir("src/vga");
12+
//exe.addIncludeDir("src/vga");
1313
exe.setBuildMode(mode);
1414

1515
exe.setLinkerScriptPath("./linker.ld");
1616
// Use eabihf for freestanding arm code with hardware float support
17-
exe.setTarget(builtin.Arch.aarch64v8, builtin.Os.freestanding, builtin.Environ.eabihf);
17+
exe.setTarget(builtin.Arch{ .aarch64 = builtin.Arch.Arm64.v8 }, builtin.Os.freestanding, builtin.Abi.eabihf);
1818

1919
const qemu = b.step("qemu", "run kernel in qemu");
2020
var qemu_args = std.ArrayList([]const u8).init(b.allocator);

0 commit comments

Comments
 (0)