Skip to content

Commit ed83a4a

Browse files
committed
Optimizing perf and setting up windows crt
1 parent e2a6109 commit ed83a4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

allocator/mimalloc-sys/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ fn compile_mimalloc(dst: &Path) {
4343

4444
if build.get_compiler().is_like_msvc() {
4545
build.cpp(true);
46+
build.static_crt(true);
4647
}
48+
// turn off debug mode
49+
build.define("MI_DEBUG", "0");
50+
51+
// turning on optimizations doesn't seem to make a difference
52+
//build.opt_level(3);
4753

4854
build.compile("mimalloc");
4955

0 commit comments

Comments
 (0)