about summary refs log tree commit diff
path: root/compiler/rustc
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2024-03-12 02:12:28 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2024-08-11 04:16:53 +0200
commit3ee43259ac9ddb7d5e050e9c7e65c848550045da (patch)
tree7941360eb937918b73747169021f2450aa742782 /compiler/rustc
parent730d5d4095a264ef5f7c0a0781eea68c15431d45 (diff)
downloadrust-3ee43259ac9ddb7d5e050e9c7e65c848550045da.tar.gz
rust-3ee43259ac9ddb7d5e050e9c7e65c848550045da.zip
Link `std` statically in `rustc_driver`
Diffstat (limited to 'compiler/rustc')
-rw-r--r--compiler/rustc/src/main.rs3
1 files changed, 3 insertions, 0 deletions
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