@@ -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