]> git.lizzy.rs Git - rust.git/commitdiff
Use packed debuginfo for the sysroot on macOS
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>
Fri, 3 Feb 2023 20:01:39 +0000 (20:01 +0000)
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>
Fri, 3 Feb 2023 20:02:15 +0000 (20:02 +0000)
This reduces the sysroot size

build_system/build_sysroot.rs

index bd04fdbe304a3031cf7995133a306a04744ff118..2e04f2c68116ca749da28b81aaef687985e62d9c 100644 (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() {