File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ lazy_static::lazy_static! {
3939 static ref V8_FORCE_MONOLITH_DOWNLOAD : bool = env:: var( "V8_FORCE_DOWNLOAD_V8_MONOLITH" ) . map( |v| v == "yes" ) . unwrap_or( false ) ;
4040}
4141
42+ // fn find_ld_default_library_paths() -> Vec<String> {
43+ // Command::new("ld").args("--verbose").status().expect()
44+ // }
45+
4246fn run_cmd ( cmd : & str , args : & [ & str ] ) {
4347 let failure_message = format ! ( "Failed running command: {} {}" , cmd, args. join( " " ) ) ;
4448 if !Command :: new ( cmd)
@@ -107,7 +111,7 @@ fn main() {
107111 "cargo:rustc-flags=-L{} -lv8 -lv8_monolith_{} -ldl -lc" ,
108112 output_dir, * PROFILE
109113 ) ;
110- println ! ( "cargo:rustc-link-lib=stdc++" ) ;
114+ println ! ( "cargo:rustc-link-lib=static:-bundle,+whole-archive= stdc++" ) ;
111115 }
112116 "macos" => {
113117 println ! (
You can’t perform that action at this time.
0 commit comments