rust-lang / cc-rs

Rust library for build scripts to compile C/C++ code into a Rust library
https://docs.rs/cc
Apache License 2.0
1.77k stars 427 forks source link

Fix paths on Mac Catalyst #1070

Closed madsmtm closed 2 months ago

madsmtm commented 2 months ago

Introduced in https://github.com/rust-lang/cc-rs/pull/961, like a buffoon I didn't test the final implementation which used /... in .join(), which truncates the path.

Have fixed this in the first commit, the second commit is a refactoring to make it clearer that these are emitted together with -isysroot, and does not replace it.