Skip to content

Commit 96368ac

Browse files
author
Marc Jakobi
committed
Build .dll library on MSVC
1 parent 534bfed commit 96368ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ impl Build {
213213
}
214214
}
215215

216+
if target.contains("msvc") {
217+
config.shared_flag(true);
218+
}
219+
216220
config.out_dir(&lib_dir).compile(lib_name);
217221

218222
for f in &["lauxlib.h", "lua.h", "luaconf.h", "lualib.h"] {

0 commit comments

Comments
 (0)