File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 1- #
2- # https://stackoverflow.com/questions/28124221/error-linking-with-cc-failed-exit-code-1
3- #
4- [target .aarch64-apple-darwin ]
5- rustflags = [
6- " -C" , " link-arg=-undefined" ,
7- " -C" , " link-arg=dynamic_lookup" ,
8- ]
9- [target .x86_64-apple-darwin ]
10- rustflags = [
11- " -C" , " link-arg=-undefined" ,
12- " -C" , " link-arg=dynamic_lookup" ,
13- ]
14-
151[env ]
162CACHE_DIR = { value = " .cache" , relative = true }
Original file line number Diff line number Diff line change @@ -43,4 +43,11 @@ fn main() {
4343 // println!("cargo::rustc-cfg=nginx1_27_0");
4444 // }
4545 // }
46+
47+ // Generate required compiler flags
48+ if cfg ! ( target_os = "macos" ) {
49+ // https://stackoverflow.com/questions/28124221/error-linking-with-cc-failed-exit-code-1
50+ println ! ( "cargo::rustc-link-arg=-undefined" ) ;
51+ println ! ( "cargo::rustc-link-arg=dynamic_lookup" ) ;
52+ }
4653}
You can’t perform that action at this time.
0 commit comments