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! {
39
39
static ref V8_FORCE_MONOLITH_DOWNLOAD : bool = env:: var( "V8_FORCE_DOWNLOAD_V8_MONOLITH" ) . map( |v| v == "yes" ) . unwrap_or( false ) ;
40
40
}
41
41
42
+ // fn find_ld_default_library_paths() -> Vec<String> {
43
+ // Command::new("ld").args("--verbose").status().expect()
44
+ // }
45
+
42
46
fn run_cmd ( cmd : & str , args : & [ & str ] ) {
43
47
let failure_message = format ! ( "Failed running command: {} {}" , cmd, args. join( " " ) ) ;
44
48
if !Command :: new ( cmd)
@@ -107,7 +111,7 @@ fn main() {
107
111
"cargo:rustc-flags=-L{} -lv8 -lv8_monolith_{} -ldl -lc" ,
108
112
output_dir, * PROFILE
109
113
) ;
110
- println ! ( "cargo:rustc-link-lib=stdc++" ) ;
114
+ println ! ( "cargo:rustc-link-lib=static:-bundle,+whole-archive= stdc++" ) ;
111
115
}
112
116
"macos" => {
113
117
println ! (
You can’t perform that action at this time.
0 commit comments