From 4c987d0959f120acccf18cce342b692231282133 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Fri, 17 Nov 2023 12:26:48 -0800 Subject: [PATCH] fix flexilib build --- src/universal_lambda.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/universal_lambda.zig b/src/universal_lambda.zig index d0bfff8..30e7660 100644 --- a/src/universal_lambda.zig +++ b/src/universal_lambda.zig @@ -9,7 +9,10 @@ const runFn = blk: { switch (build_options.build_type) { .awslambda => break :blk @import("lambda.zig").run, .standalone_server => break :blk runStandaloneServerParent, - .flexilib => break :blk @import("flexilib.zig").run, + // In the case of flexilib, our root module is actually flexilib.zig + // so we need to import that, otherwise we risk the dreaded "file exists + // in multiple modules" problem + .flexilib => break :blk @import("root").run, .exe_run, .cloudflare => break :blk @import("console.zig").run, } };