1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Compile assembly files

This commit is contained in:
Frank Denis 2021-11-10 15:40:20 +01:00
parent 620d4529b6
commit 826b7d2a10

View File

@ -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);
}
}
}