about summary refs log tree commit diff
path: root/compiler/rustc_driver
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-02-02 07:17:46 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-02-02 07:34:41 +0100
commit2aceaf4849a806813c31e9987df458e08c11e5f3 (patch)
treeb47c1afcbb519e4ae64919507c9b0bcfd961e577 /compiler/rustc_driver
parent73681323e611972caa9a6107312c9e1f74467545 (diff)
downloadrust-2aceaf4849a806813c31e9987df458e08c11e5f3.tar.gz
rust-2aceaf4849a806813c31e9987df458e08c11e5f3.zip
Add a new `rustc_driver` dylib to rexport `rustc_driver_impl`
Diffstat (limited to 'compiler/rustc_driver')
-rw-r--r--compiler/rustc_driver/Cargo.toml10
-rw-r--r--compiler/rustc_driver/src/lib.rs7
2 files changed, 17 insertions, 0 deletions
diff --git a/compiler/rustc_driver/Cargo.toml b/compiler/rustc_driver/Cargo.toml
new file mode 100644
index 00000000000..d7c295418ba
--- /dev/null
+++ b/compiler/rustc_driver/Cargo.toml
@@ -0,0 +1,10 @@
+[package]
+name = "rustc_driver"
+version = "0.0.0"
+edition = "2021"
+
+[lib]
+crate-type = ["dylib"]
+
+[dependencies]
+rustc_driver_impl = { path = "../rustc_driver_impl" }
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
new file mode 100644
index 00000000000..195fc71b649
--- /dev/null
+++ b/compiler/rustc_driver/src/lib.rs
@@ -0,0 +1,7 @@
+// This crate is intentionally empty and a rexport of `rustc_driver_impl` to allow the code in
+// `rustc_driver_impl` to be compiled in parallel with other crates.
+
+#![allow(unused_extern_crates)]
+extern crate rustc_driver_impl;
+
+pub use rustc_driver_impl::*;