The following commit resolves Issue #54417. Fixes llvm-strip conditional command
line option logic to not enable --strip-all in the presence of
--only-keep-debug.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Patch is ready for review.
I am not sure if there would be value in adding a test with --only-keep-debug and --strip-all. Let me know if you think this would be useful and I can add it.
Thanks in advance for your feedback.
[llvm-objcopy] llvm-strip option --only-keep-debug should suppress default --strip-all
An imperative sentence is more common as the subject line.
option in option --only-keep-debug does not convey extra information.
You may use [llvm-objcopy] Make llvm-strip --only-keep-debug suppress default --strip-all
llvm/test/tools/llvm-objcopy/ELF/only-keep-debug.test | ||
---|---|---|
8 | Add a comment ## --only-keep-debug suppresses the default --strip-all. |
Updating D123798: [llvm-objcopy] llvm-strip option --only-keep-debug should suppress default --strip-all
Add comment to ELF/only-keep-debug.test explaining default option override. This
change is per feedback provided during the patch review process.
[llvm-objcopy] llvm-strip option --only-keep-debug should suppress default --strip-all
The following commit resolves Issue #54417. Fixes llvm-strip conditional command
line option logic to not enable --strip-all in the presence of
--only-keep-debug.
[llvm-objcopy] llvm-strip option --only-keep-debug should suppress default --strip-all
The following commit resolves Issue #54417. Fixes llvm-strip conditional command
line option logic to not enable --strip-all in the presence of
--only-keep-debug.
@MaskRay Thank you for your feedback! I have implemented the following changes:
- Comment has been added to ELF/only-keep-debug.test explaining that --only-keep-debug overrides --strip-all
- Differential title has been updated to be more imperative
Sorry about the extra revision diffs (still learning arc), squashing commits worked.
Once this is re-approved can someone please commit on my behalf:
Name: John McIver
Email: john.mciver.iii@gmail.com
Thanks again @MaskRay for taking the time to review!
Add a comment ## --only-keep-debug suppresses the default --strip-all.