Skip to content

Commit

Permalink
Define SODIUM_STATIC for static builds on Windows
Browse files Browse the repository at this point in the history
Fixes #1278
  • Loading branch information
jedisct1 committed Apr 27, 2023
1 parent 8d9ab6c commit d787d2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ pub fn build(b: *std.build.Builder) !void {
.windows => {
lib.defineCMacro("HAVE_RAISE", "1");
lib.defineCMacro("HAVE_SYS_PARAM_H", "1");
if (lib == static) {
lib.defineCMacro("SODIUM_STATIC", "1");
}
},
.macos => {
lib.defineCMacro("ASM_HIDE_SYMBOL", ".private_extern");
Expand Down

0 comments on commit d787d2b

Please sign in to comment.