diff --git a/build.zig b/build.zig index 3c42f4c1..3170efdc 100644 --- a/build.zig +++ b/build.zig @@ -67,6 +67,9 @@ pub fn build(b: *std.build.Builder) !void { "-fwrapv", "-flax-vector-conversions", }); + } else if (mem.endsWith(u8, name, ".S")) { + const full_path = try fmt.allocPrint(allocator, "{s}/{s}", .{ base, entry.path }); + libsodium.addAssemblyFile(full_path); } } }