Use packed debuginfo for the sysroot on macOS

This reduces the sysroot size
This commit is contained in:
bjorn3 2023-02-03 20:01:39 +00:00
parent f5669a3548
commit efb92a1ae8

View File

@ -248,6 +248,9 @@ fn build_clif_sysroot_for_triple(
build_cmd.arg("--release");
}
build_cmd.env("__CARGO_DEFAULT_LIB_METADATA", "cg_clif");
if compiler.triple.contains("apple") {
build_cmd.env("CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO", "packed");
}
spawn_and_wait(build_cmd);
for entry in fs::read_dir(build_dir.join("deps")).unwrap() {