Skip to content

Commit

Permalink
Exclude shared libraries on WebAssembly
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Apr 28, 2024
1 parent a83f5a7 commit 8488093
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ pub fn build(b: *std.Build) !void {
}

for (libs.items) |lib| {
if (lib.isDynamicLibrary() and
!(target.result.isDarwin() or target.result.isBSD() or target.result.isGnu() or target.result.isMusl() or target.result.isMinGW()))
if (lib.isDynamicLibrary() and !(target.result.cpu.arch == .wasm32 or target.result.cpu.arch == .wasm64 or
target.result.isDarwin() or target.result.isBSD() or
target.result.isGnu() or target.result.isMusl() or target.result.isMinGW()))
{
continue;
}
Expand Down

0 comments on commit 8488093

Please sign in to comment.