This is an archive of the discontinued LLVM Phabricator instance.

lld: Allow -soname arg in addition to -soname=arg
ClosedPublic

Authored by emaste on Oct 2 2015, 8:14 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

emaste updated this revision to Diff 36368.Oct 2 2015, 8:14 AM
emaste retitled this revision from to lld: Allow -soname arg in addition to -soname=arg.
emaste updated this object.
emaste added reviewers: ruiu, rafael.
emaste added a subscriber: llvm-commits.
emaste added a comment.EditedOct 2 2015, 8:22 AM

It turns out GNU ld also accepts --soname arg and --soname=arg for a total of 5 different ways of spelling the option. Do we want those as well?

Also it seems my change is against the convention established here. Should it be:

def alias_soname : Separate<["-"], "h">, Alias<soname>;
def alias_snoame : Separate<["-"], "soname">, Alias<soname>;
ruiu accepted this revision.Oct 2 2015, 8:24 AM
ruiu edited edge metadata.

LGTM

We probably should name these aliases alias_<alias name> instead of alias_<aliased name> to avoid conflicts, but this patch looks good for now.

This revision is now accepted and ready to land.Oct 2 2015, 8:24 AM
emaste added a comment.Oct 2 2015, 8:34 AM

We probably should name these aliases alias_<alias name> instead of alias_<aliased name> to avoid conflicts

I'm happy to submit another review to swap them around.

but this patch looks good for now.

To be clear, do you mean as I first submitted it, or the change with doubled def alias_soname?

This revision was automatically updated to reflect the committed changes.