Skip to content

Commit 1381342

Browse files
committed
Allow building on MSVC/debug
1 parent bfa37ee commit 1381342

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui-sys/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ fn main() {
3737

3838
let mut postfix = Path::new("build").join("out");
3939
if msvc {
40-
postfix = postfix.join("Release");
40+
postfix = postfix.join(
41+
if cfg!(debug_assertions) { "Debug" } else {"Release"}
42+
);
4143
}
4244
dst = dst.join(&postfix);
4345
} else {

0 commit comments

Comments
 (0)