mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Update for Zig 0.15
This commit is contained in:
@@ -193,13 +193,13 @@ pub fn build(b: *std.Build) !void {
|
||||
});
|
||||
|
||||
// work out which libraries we are building
|
||||
var libs = std.ArrayList(*Compile).init(b.allocator);
|
||||
defer libs.deinit();
|
||||
var libs = std.ArrayList(*Compile){};
|
||||
defer libs.deinit(heap.page_allocator);
|
||||
if (build_static) {
|
||||
try libs.append(static_lib);
|
||||
try libs.append(heap.page_allocator, static_lib);
|
||||
}
|
||||
if (build_shared) {
|
||||
try libs.append(shared_lib);
|
||||
try libs.append(heap.page_allocator, shared_lib);
|
||||
}
|
||||
|
||||
const prebuilt_version_file_path = "builds/msvc/version.h";
|
||||
|
||||
Reference in New Issue
Block a user