Skip to content

Commit 6bb6d13

Browse files
wip
1 parent 9ece1f4 commit 6bb6d13

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ fn main() {
8383

8484
// -- END MSVC SUPPORT --
8585

86-
let mut build = cc::Build::new()
87-
.files(files.iter().map(|f| code_dir.join(f)))
86+
let mut build = cc::Build::new();
87+
build.files(files.iter().map(|f| code_dir.join(f)))
8888
.define("_GNU_SOURCE", None)
8989
.define("WIN32_LEAN_AND_MEAN", None)
9090

@@ -101,16 +101,16 @@ fn main() {
101101
.flag_if_supported("-Wunused")
102102
.flag_if_supported("-Wwrite-strings")
103103
.flag_if_supported("-funsigned-char")
104-
.flag_if_supported("-Wno-cast-function-type")
105-
.opt_level(2);
104+
.flag_if_supported("-Wno-cast-function-type");
105+
106106

107107
#[cfg(feature = "bellard")]
108108
if target_env == "msvc" {
109-
build = build.define("_CRT_SECURE_NO_WARNINGS", None)
110-
.flag_if_supported("/utf-8")
109+
build.define("_CRT_SECURE_NO_WARNINGS", None)
110+
.flag_if_supported("/utf-8");
111111
}
112112

113-
build.compile(LIB_NAME);
113+
build.opt_level(2).compile(LIB_NAME);
114114

115115
let wrapper_h = embed_path.join("wrapper.h");
116116

0 commit comments

Comments
 (0)