File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11#[ cfg( feature = "build_cc" ) ]
22fn main ( ) {
3- let ( debug, optim ) = if cfg ! ( feature = "debug" ) {
4- ( true , "-O0" )
3+ let ( debug, optim_unix , optim_msvc , prof_msvc_hint ) = if cfg ! ( feature = "debug" ) {
4+ ( true , "-O0" , "/O0" , "/DEBUG" )
55 } else {
6- ( false , "-O3" )
6+ ( false , "-O3" , "/O2" , "/RELEASE" )
77 } ;
88 let mut build = cc:: Build :: new ( ) ;
99 build. include ( "snmalloc/src" ) ;
@@ -27,7 +27,9 @@ fn main() {
2727 build. flag_if_supported ( "/Zc:wchar_t" ) ;
2828 build. flag_if_supported ( "/Zc:forScope" ) ;
2929 build. flag_if_supported ( "/Zc:inline" ) ;
30- build. flag_if_supported ( optim) ;
30+ build. flag_if_supported ( prof_msvc_hint) ;
31+ build. flag_if_supported ( optim_msvc) ;
32+ build. flag_if_supported ( optim_unix) ;
3133 build. flag_if_supported ( "-mcx16" ) ;
3234 build. flag_if_supported ( "-fno-exceptions" ) ;
3335 build. flag_if_supported ( "-fno-rtti" ) ;
You can’t perform that action at this time.
0 commit comments