about summary refs log tree commit diff
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
commit837d9045c5cf40b2ebf4b4ae2a02f35f8c7e0825 (patch)
tree4b1d3fb737f53a0149ddf7ef9c479808d74ec161
parent917ad034cc89ecdde85771238d0d8f89813290fb (diff)
downloadrust-837d9045c5cf40b2ebf4b4ae2a02f35f8c7e0825.tar.gz
rust-837d9045c5cf40b2ebf4b4ae2a02f35f8c7e0825.zip
Link `std` statically in `rustc_driver`
-rw-r--r--src/main.rs3
-rw-r--r--tests/compile-test.rs3
2 files changed, 6 insertions, 0 deletions
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)]
 
diff --git a/tests/compile-test.rs b/tests/compile-test.rs
index c7080e5dcdc..64253514fbe 100644
--- a/tests/compile-test.rs
+++ b/tests/compile-test.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(rust_2018_idioms, unused_lifetimes)]
 #![allow(unused_extern_crates)]