Skip to content

Commit efb92a1

Browse files
committed
Use packed debuginfo for the sysroot on macOS
This reduces the sysroot size
1 parent f5669a3 commit efb92a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build_system/build_sysroot.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ fn build_clif_sysroot_for_triple(
248248
build_cmd.arg("--release");
249249
}
250250
build_cmd.env("__CARGO_DEFAULT_LIB_METADATA", "cg_clif");
251+
if compiler.triple.contains("apple") {
252+
build_cmd.env("CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO", "packed");
253+
}
251254
spawn_and_wait(build_cmd);
252255

253256
for entry in fs::read_dir(build_dir.join("deps")).unwrap() {

0 commit comments

Comments
 (0)