From 837d9045c5cf40b2ebf4b4ae2a02f35f8c7e0825 Mon Sep 17 00:00:00 2001 From: John Kåre Alsaker Date: Tue, 12 Mar 2024 02:12:28 +0100 Subject: Link `std` statically in `rustc_driver` --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index c9af2138a72..c9853e53f3b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +// We need this feature as it changes `dylib` linking behavior and allows us to link to +// `rustc_driver`. +#![feature(rustc_private)] // warn on lints, that are included in `rust-lang/rust`s bootstrap #![warn(rust_2018_idioms, unused_lifetimes)] -- cgit 1.4.1-3-g733a5