Previously, we would show an error message for an unknown command line flag
(e.g. --foo) but we wouldn't show that for an unknown -z option (e.g. -z foo).
That's inconsistent. With this patch, we always show an error message for an
unknown -z option.
Details
Details
- Reviewers
grimar • espindola thakis - Commits
- rG265e8e8252a6: Show "Unknown -z option" error message even if --version or --help are given.
rLLD353967: Show "Unknown -z option" error message even if --version or --help are given.
rL353967: Show "Unknown -z option" error message even if --version or --help are given.
Diff Detail
Diff Detail
- Build Status
Buildable 25840 Build 25839: arc lint + arc unit
Event Timeline
Comment Actions
Patch LGTM, but the description looks wrong to me:
lld/test/ELF/driver.test | ||
---|---|---|
62 | This test suggests that the patch description isn't quite right -- lld already prints an error for unknown -z flags. The only effect this patch has is that it now also does this if --version or --help is passed, right? |
This test suggests that the patch description isn't quite right -- lld already prints an error for unknown -z flags. The only effect this patch has is that it now also does this if --version or --help is passed, right?