Skip to content

[lld-macho] Ignore -no_warn_duplicate_libraries flag #86303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lld/MachO/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -1407,3 +1407,9 @@ def debug_variant : Flag<["-"], "debug_variant">,
HelpText<"Do not warn about issues that are only problems for binaries shipping to customers.">,
Flags<[HelpHidden]>,
Group<grp_ignored_silently>;

// NOTE: This flag should be respected if -warn_duplicate_libraries is ever implemented.
def no_warn_duplicate_libraries : Flag<["-"], "no_warn_duplicate_libraries">,
HelpText<"Do not warn if the input contains duplicate library options.">,
Flags<[HelpHidden]>,
Group<grp_ignored_silently>;
2 changes: 1 addition & 1 deletion lld/test/MachO/silent-ignore.s
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

## Check that we don't emit any warnings nor errors for these unimplemented flags.
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
# RUN: %lld %t.o -o /dev/null -objc_abi_version 2 -debug_variant
# RUN: %lld %t.o -o /dev/null -objc_abi_version 2 -debug_variant -no_warn_duplicate_libraries

.globl _main
_main:
Expand Down