Define SODIUM_STATIC for Windows static builds

This commit is contained in:
Frank Denis 2023-04-27 08:24:28 +02:00
parent 8cc84df466
commit adef28f318

View File

@ -90,6 +90,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");