about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-09-08 13:44:41 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2020-09-27 14:16:42 +0200
commit210e89198d72108fbba6de3fa539a8a92c1e7213 (patch)
treef840d2cecf1b0f6483ee53a8eeb6c7a534ab5335
parent141b9c28901fd80da028a984eca2af4e7218a09a (diff)
downloadrust-210e89198d72108fbba6de3fa539a8a92c1e7213.tar.gz
rust-210e89198d72108fbba6de3fa539a8a92c1e7213.zip
Add option to pass a custom codegen backend from a driver
-rw-r--r--src/driver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver.rs b/src/driver.rs
index 47315fa64cd..f4f2259cefd 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -357,7 +357,7 @@ pub fn main() {
                 args.extend(vec!["--sysroot".into(), sys_root]);
             };
 
-            return rustc_driver::run_compiler(&args, &mut DefaultCallbacks, None, None);
+            return rustc_driver::run_compiler(&args, &mut DefaultCallbacks, None, None, None);
         }
 
         if orig_args.iter().any(|a| a == "--version" || a == "-V") {
@@ -420,6 +420,6 @@ pub fn main() {
         let mut default = DefaultCallbacks;
         let callbacks: &mut (dyn rustc_driver::Callbacks + Send) =
             if clippy_enabled { &mut clippy } else { &mut default };
-        rustc_driver::run_compiler(&args, callbacks, None, None)
+        rustc_driver::run_compiler(&args, callbacks, None, None, None)
     }))
 }