Skip to content

Commit

Permalink
Stop building native binary on cross-compilation
Browse files Browse the repository at this point in the history
Signed-off-by: emneo <emneo@kreog.com>
  • Loading branch information
emneo-dev committed Sep 8, 2024
1 parent 0ad58be commit 2bc262f
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,20 @@ pub fn build(b: *std.Build) !void {
optimize,
allocator,
);
} else {
const liskvork = try configure_binary(
b,
opt,
native_target,
optimize,
allocator,
);

const run_liskvork = b.addRunArtifact(liskvork);

const run_step = b.step("run", "Run liskvork");
run_step.dependOn(&run_liskvork.step);
}
const liskvork = try configure_binary(
b,
opt,
native_target,
optimize,
allocator,
);

const run_liskvork = b.addRunArtifact(liskvork);

const run_step = b.step("run", "Run liskvork");
run_step.dependOn(&run_liskvork.step);

const test_step = b.step("test", "Run unit tests");

Expand Down

0 comments on commit 2bc262f

Please sign in to comment.