Skip to content

Commit d48bc4a

Browse files
robbielymannatecraddock
authored andcommitted
fix(build): add -DLUA_BUILD_AS_DLL if building shared + Windows
Partially resolves #147
1 parent 6ec3c8c commit d48bc4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/lua.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ pub fn configure(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.
5252

5353
// Enable api check
5454
if (optimize == .Debug) "-DLUA_USE_APICHECK" else "",
55+
56+
// Build as DLL for windows if shared
57+
if (target.result.os.tag == .windows and shared) "-DLUA_BUILD_AS_DLL" else "",
5558
};
5659

5760
const lua_source_files = switch (lang) {

0 commit comments

Comments
 (0)