Fix compile errors for non-Linux targets#12317
Conversation
|
GNU testsuite comparison: |
Merging this PR will improve performance by 13.71%
Performance Changes
Tip Curious why this is faster? Comment Comparing Footnotes
|
|
I don't like this solution. This is already covered by feature. |
|
I would like to get |
|
It does not making a sense to clippy unsupported part. |
|
At least, I think distributor does not want to distribute stubs if |
This comment was marked as outdated.
This comment was marked as outdated.
|
You should ask upstream to auto-skip clippy when |
|
We already use supports stubs for chcon and runcon: #8795 |
|
People on MSYS2 could try to replace system binary with main's binary, or replace cygwin binary with windows binary if cygpath is not an issue. In the case, people can incorrectly override proper nohup.exe by stub nohup.exe and break the system.
(*con are accidentally exception since MSYS does not have them. But we should not have)
|
|
I guess we could avoid stubs with: Then we get a linker error, but at least no compile errors. |
|
How about just removing |
|
The crate fails compile for non-Unix, so it seems the only options are to use a stub, linker error, or compile error. |
|
I passed |
|
I'll investigate what I can do for |
2d58805 to
731518f
Compare
|
|
Doesn't help for compile errors, e.g. with |
|
Linker error should happen also for multicall-call binary. |
How can I test this? |
|
|
731518f to
f203f6c
Compare
Contributes to #11019
to avoid compile errors on non-Linux platforms, failing pre-commit check