From b490237846e3e7470cedb1201a650273e2e1d897 Mon Sep 17 00:00:00 2001 From: isaac yonemoto Date: Sun, 4 Aug 2024 22:26:11 -0500 Subject: [PATCH] adds undefined-allowed for macosx --- lib/zig/templates/build.zig.eex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/zig/templates/build.zig.eex b/lib/zig/templates/build.zig.eex index c4012e2d..aeff1a6f 100644 --- a/lib/zig/templates/build.zig.eex +++ b/lib/zig/templates/build.zig.eex @@ -100,6 +100,8 @@ pub fn build(b: *std.Build) void { lib.linkLibC(); + lib.linker_allow_shlib_undefined = true; + lib.root_module.addImport("erl_nif", erl_nif); lib.root_module.addImport("beam", beam); lib.root_module.addImport("nif", nif);