File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,10 @@ fn get_cpp_link_stdlib() -> Option<String> {
1111 let target = env:: var ( "TARGET" ) . unwrap ( ) ;
1212 if target. contains ( "msvc" ) {
1313 None
14- } else if target. contains ( "apple" ) {
15- Some ( "c++" . to_string ( ) )
16- } else if target. contains ( "freebsd" ) {
17- Some ( "c++" . to_string ( ) )
18- } else if target. contains ( "openbsd" ) {
14+ } else if target. contains ( "apple" )
15+ || target. contains ( "freebsd" )
16+ || target. contains ( "openbsd" )
17+ {
1918 Some ( "c++" . to_string ( ) )
2019 } else {
2120 Some ( "stdc++" . to_string ( ) )
@@ -31,7 +30,7 @@ fn main() {
3130
3231 eprintln ! ( "download" ) ;
3332 assert ! ( Command :: new( "curl" )
34- . args( & [ "-L" , "-o" , "simdjson.tar.gz" , & download_url] )
33+ . args( [ "-L" , "-o" , "simdjson.tar.gz" , & download_url] )
3534 . current_dir( & out_path)
3635 . status( )
3736 . unwrap( )
@@ -40,7 +39,7 @@ fn main() {
4039
4140 eprintln ! ( "extracting" ) ;
4241 Command :: new ( "tar" )
43- . args ( & [ "xzf" , "simdjson.tar.gz" ] )
42+ . args ( [ "xzf" , "simdjson.tar.gz" ] )
4443 . current_dir ( & out_path)
4544 . status ( )
4645 . unwrap ( ) ;
Original file line number Diff line number Diff line change 1- #![ expect( non_upper_case_globals) ]
21#![ expect( non_camel_case_types) ]
3- #![ expect( non_snake_case) ]
42use std:: os:: raw:: c_char;
53
64include ! ( concat!( env!( "OUT_DIR" ) , "/bindings.rs" ) ) ;
You can’t perform that action at this time.
0 commit comments