summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-09-14 15:50:11 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-09-25 14:38:27 +0000
commita38e98371bf2c2e81dd8f01da21330b87622dd3a (patch)
tree69e894fb448ec475b2c9c6d77ecfdaf2aef10196 /src/bootstrap
parent19f1d782d51d980ccb5c448e6a415188323b30ce (diff)
downloadrust-a38e98371bf2c2e81dd8f01da21330b87622dd3a.tar.gz
rust-a38e98371bf2c2e81dd8f01da21330b87622dd3a.zip
Split out the stable part of smir into its own crate to prevent accidental usage of forever unstable things
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/compile.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs
index 4f19ffa83db..292ccc5780f 100644
--- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
@@ -1789,7 +1789,10 @@ pub fn run_cargo(
                 // During check builds we need to keep crate metadata
                 keep = true;
             } else if rlib_only_metadata {
-                if filename.contains("jemalloc_sys") || filename.contains("rustc_smir") {
+                if filename.contains("jemalloc_sys")
+                    || filename.contains("rustc_smir")
+                    || filename.contains("stable_mir")
+                {
                     // jemalloc_sys and rustc_smir are not linked into librustc_driver.so,
                     // so we need to distribute them as rlib to be able to use them.
                     keep |= filename.ends_with(".rlib");