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
- Repository
- rL LLVM
Event Timeline
Comment Actions
Patch LGTM, but the description looks wrong to me:
lld/test/ELF/driver.test | ||
---|---|---|
62 ↗ | (On Diff #177248) | 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? |
Comment Actions
LGTM with the description clarification.
lld/test/ELF/driver.test | ||
---|---|---|
62 ↗ | (On Diff #177248) | +1 |