mirror of
https://github.com/NilsIrl/dockerc.git
synced 2025-10-05 15:06:55 +08:00
Workaround EINVAL in fuse-overlayfs
This commit is contained in:
@@ -189,7 +189,6 @@ pub fn build(b: *std.Build) void {
|
|||||||
|
|
||||||
const runtime = b.createModule(.{
|
const runtime = b.createModule(.{
|
||||||
.root_source_file = b.path("src/main.zig"),
|
.root_source_file = b.path("src/main.zig"),
|
||||||
.optimize = optimize,
|
|
||||||
.link_libc = true,
|
.link_libc = true,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -271,12 +270,16 @@ pub fn build(b: *std.Build) void {
|
|||||||
.name = "runtime_x86-64",
|
.name = "runtime_x86-64",
|
||||||
.target = x86_64_target,
|
.target = x86_64_target,
|
||||||
.linkage = .static,
|
.linkage = .static,
|
||||||
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
|
||||||
const runtime_aarch64 = b.addExecutable(.{
|
const runtime_aarch64 = b.addExecutable(.{
|
||||||
.name = "runtime_aarch64",
|
.name = "runtime_aarch64",
|
||||||
.target = aarch64_target,
|
.target = aarch64_target,
|
||||||
.linkage = .static,
|
.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);
|
runtime_x86_64.root_module.addImport("runtime", runtime);
|
||||||
|
Reference in New Issue
Block a user