We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc164f4 + 4f7a260 commit 3262f92Copy full SHA for 3262f92
src/driver.rs
@@ -6,6 +6,7 @@
6
7
use rustc_driver::{self, driver::CompileController, Compilation};
8
use rustc_plugin;
9
+use std::path::Path;
10
use std::process::{exit, Command};
11
12
#[allow(clippy::print_stdout)]
@@ -47,7 +48,7 @@ pub fn main() {
47
48
if orig_args.len() <= 1 {
49
std::process::exit(1);
50
}
- if orig_args[1] == "rustc" {
51
+ if Path::new(&orig_args[1]).file_stem() == Some("rustc".as_ref()) {
52
// we still want to be able to invoke it normally though
53
orig_args.remove(1);
54
0 commit comments