Use packed debuginfo for the sysroot on macOS
This reduces the sysroot size
This commit is contained in:
parent
f5669a3548
commit
efb92a1ae8
@ -248,6 +248,9 @@ fn build_clif_sysroot_for_triple(
|
|||||||
build_cmd.arg("--release");
|
build_cmd.arg("--release");
|
||||||
}
|
}
|
||||||
build_cmd.env("__CARGO_DEFAULT_LIB_METADATA", "cg_clif");
|
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);
|
spawn_and_wait(build_cmd);
|
||||||
|
|
||||||
for entry in fs::read_dir(build_dir.join("deps")).unwrap() {
|
for entry in fs::read_dir(build_dir.join("deps")).unwrap() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user