diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-09-08 13:44:41 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-09-27 14:16:42 +0200 |
| commit | 210e89198d72108fbba6de3fa539a8a92c1e7213 (patch) | |
| tree | f840d2cecf1b0f6483ee53a8eeb6c7a534ab5335 | |
| parent | 141b9c28901fd80da028a984eca2af4e7218a09a (diff) | |
| download | rust-210e89198d72108fbba6de3fa539a8a92c1e7213.tar.gz rust-210e89198d72108fbba6de3fa539a8a92c1e7213.zip | |
Add option to pass a custom codegen backend from a driver
| -rw-r--r-- | src/driver.rs | 4 |
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) })) } |
