Skip to content

Commit

Permalink
Workaround EINVAL in fuse-overlayfs
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsIrl committed Aug 9, 2024
1 parent 817b4ca commit d79a071
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ pub fn build(b: *std.Build) void {

const runtime = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.optimize = optimize,
.link_libc = true,
});

Expand Down Expand Up @@ -271,12 +270,16 @@ pub fn build(b: *std.Build) void {
.name = "runtime_x86-64",
.target = x86_64_target,
.linkage = .static,
.optimize = optimize,
});

const runtime_aarch64 = b.addExecutable(.{
.name = "runtime_aarch64",
.target = aarch64_target,
.linkage = .static,
// FIXME: When compiled with ReleaseSafe reading files in the overlayfs
// will give EINVAL (Invalid Argument)
.optimize = .Debug,
});

runtime_x86_64.root_module.addImport("runtime", runtime);
Expand Down

0 comments on commit d79a071

Please sign in to comment.