Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Aug 11, 2023
1 parent 273fce8 commit d8eed51
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,16 @@ pub fn build(b: *std.Build) void {
.target = target,
.optimize = optimize,
});
unit_tests.addIncludePath(LazyPath{ .path = "evmone" });
unit_tests.addIncludePath(LazyPath{ .path = "evmone/include/evmone" });
unit_tests.addIncludePath(LazyPath{ .path = "evmone/evmc/include" });
if (target.getCpuArch() == .x86_64) {
// On x86_64, some functions are missing from the static library,
// so we define dummy functions to make sure that it compiles.
unit_tests.addCSourceFile(.{
.file = .{ .path = "src/glue.c" },
.flags = &cflags,
});
}
unit_tests.linkLibrary(ethash);
unit_tests.linkLibrary(evmone);
unit_tests.linkLibC();
Expand Down

0 comments on commit d8eed51

Please sign in to comment.