Skip to content

Commit

Permalink
use zig-out in our manual build step too
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed May 5, 2021
1 parent 9248149 commit dae8f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dainboot/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn buildRiscv64(b: *Builder, board: dcommon.Board, target: std.zig.CrossTarget)
combined.addArtifactArg(crt0);
combined.addArtifactArg(obj);

try std.fs.cwd().makePath("zig-cache/bin");
try std.fs.cwd().makePath("zig-out/bin");
const efi = b.addSystemCommand(&.{
"llvm-objcopy",
"-j",
Expand All @@ -80,7 +80,7 @@ fn buildRiscv64(b: *Builder, board: dcommon.Board, target: std.zig.CrossTarget)
".reloc",
"--output-target=binary",
"combined.o",
b.fmt("zig-cache/bin/{s}.efi", .{bootName(b, board, target)}),
b.fmt("zig-out/bin/{s}.efi", .{bootName(b, board, target)}),
});
efi.step.dependOn(&combined.step);

Expand Down

0 comments on commit dae8f19

Please sign in to comment.