Skip to content

Commit c5a5657

Browse files
Avoid non-wrapped error on file-names discovery
1 parent 3e708e6 commit c5a5657

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

collector/src/rustc-fake.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ fn main() {
237237
// Abort if non-wrapped rustc
238238
if env::var_os("EXPECT_ONLY_WRAPPED_RUSTC").is_some() {
239239
// ... but not if we're just getting the rustc version.
240-
if !args.iter().any(|arg| arg == "-vV") {
240+
if !args
241+
.iter()
242+
.any(|arg| arg == "-vV" || arg == "--print=file-names")
243+
{
241244
eprintln!("{:?} {:?}", tool, args);
242245
eprintln!("exiting -- non-wrapped rustc");
243246
std::process::exit(1);

0 commit comments

Comments
 (0)