From 3ee43259ac9ddb7d5e050e9c7e65c848550045da 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` --- compiler/rustc/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/rustc') diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs index 29766fc9d87..e9a7397557e 100644 --- a/compiler/rustc/src/main.rs +++ b/compiler/rustc/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)] + // A note about jemalloc: rustc uses jemalloc when built for CI and // distribution. The obvious way to do this is with the `#[global_allocator]` // mechanism. However, for complicated reasons (see -- cgit 1.4.1-3-g733a5