mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
Revert "Do not install CPU-specific libs"
This reverts commit e6b1f1c9f2
.
This commit is contained in:
parent
ef17ae3923
commit
be7c9c2f51
@ -339,10 +339,9 @@ pub fn build(b: *std.Build) !void {
|
||||
};
|
||||
|
||||
const allocator = heap.page_allocator;
|
||||
|
||||
// compile CPU-specific library code
|
||||
for (&mlibs) |*mlib| {
|
||||
var target2 = target;
|
||||
|
||||
for (mlib.arches) |arch| {
|
||||
if (target.result.cpu.arch == arch) {
|
||||
for (mlib.flags) |flag| {
|
||||
@ -372,9 +371,10 @@ pub fn build(b: *std.Build) !void {
|
||||
});
|
||||
}
|
||||
lib.linkLibrary(elib);
|
||||
b.installArtifact(elib);
|
||||
}
|
||||
|
||||
// compile generic library code
|
||||
{ // compile generic library code
|
||||
var walker = try src_dir.walk(allocator);
|
||||
files: while (try walker.next()) |entry| {
|
||||
var flags = std.ArrayList([]const u8).init(allocator);
|
||||
@ -402,6 +402,7 @@ pub fn build(b: *std.Build) !void {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const test_path = "test/default";
|
||||
const out_bin_path = "zig-out/bin";
|
||||
|
Loading…
Reference in New Issue
Block a user