Skip to content

Commit 3a2a03c

Browse files
committed
Pass debug to msvc build script (if enabled)
1 parent 4b570ee commit 3a2a03c

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
@@ -270,6 +270,10 @@ impl Build {
270270

271271
let mut msvcbuild = Command::new(build_dir.join("src").join("msvcbuild.bat"));
272272
msvcbuild.current_dir(build_dir.join("src"));
273+
274+
if self.debug.unwrap_or(cfg!(debug_assertions)) {
275+
msvcbuild.arg("debug");
276+
}
273277
if self.lua52compat {
274278
msvcbuild.arg("lua52compat");
275279
}

0 commit comments

Comments
 (0)