Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error is too vague when rustc is missing #1267

Open
glandium opened this issue Jan 7, 2025 · 1 comment
Open

Error is too vague when rustc is missing #1267

glandium opened this issue Jan 7, 2025 · 1 comment

Comments

@glandium
Copy link

glandium commented Jan 7, 2025

When rustc is not found, this is the error that is printed:

[ERROR] Error while executing llvm tools: No such file or directory (os error 2)

That comes from

let output = Command::new(rustc).arg("--print").arg("sysroot").output()?;
that fails with an std::io::Error that doesn't contain information about what specifically failed.

@glandium
Copy link
Author

glandium commented Jan 7, 2025

It could be argued that it could fallback to trying to find llvm tools in $PATH, which it also doesn't do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant