Display a more user-friendly error when compiling on Linux/arm64#2435
Merged
sylvestre merged 1 commit intomozilla:mainfrom Aug 23, 2025
Merged
Display a more user-friendly error when compiling on Linux/arm64#2435sylvestre merged 1 commit intomozilla:mainfrom
sylvestre merged 1 commit intomozilla:mainfrom
Conversation
Without this change, users may be greeted with the following confusing
message when trying to build on Linux/arm64
```
error[E0601]: `main` function not found in crate `sccache_dist`
--> /home/ubuntu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sccache-0.10.0/src/bin/sccache-dist/main.rs:835:2
|
835 | }
| ^ consider adding a `main` function to `/home/ubuntu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sccache-0.10.0/src/bin/sccache-dist/main.rs`
For more information about this error, try `rustc --explain E0601`.
```
With this change:
```
error: Distributed compilation is only support on Linux/x86_64 and FreeBSD!
--> src/bin/sccache-dist/main.rs:43:5
|
43 | compile_error!("Distributed compilation is only support on Linux/x86_64 and FreeBSD!");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2435 +/- ##
==========================================
+ Coverage 67.31% 70.94% +3.63%
==========================================
Files 64 65 +1
Lines 35165 35523 +358
==========================================
+ Hits 23670 25203 +1533
+ Misses 11495 10320 -1175 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Collaborator
|
thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without this change, users may be greeted with the following confusing
message when trying to build on Linux/arm64
With this change: