[PATCH] Merge lldb-platform and lldb-gdbserver into a single binary.
Vince Harron
vharron at google.com
Tue Feb 10 17:42:41 PST 2015
argv[0] would be more standard but requires a symlink on the target. This
just requires the binary.
On Feb 10, 2015 5:32 PM, "Ed Maste" <emaste at freebsd.org> wrote:
> In http://reviews.llvm.org/D7545#121674, @silvas wrote:
>
> > Can you maybe use the trick of looking at argv[0] instead of taking a
> command line option to know which program to be? (assuming it makes sense
> to do this change). See llvm-ar for an example.
>
>
> Or look at lld as a good example. It chooses appropriate behaviour based
> on argv[0] but also has a `-flavor` argument for use when argv[0] does not
> match any of the known names.
>
> % ./lld
> Select the appropriate flavor
> OVERVIEW: LLVM Linker
>
> USAGE: lld [options] <inputs>
>
> OPTIONS:
> ...
> -flavor <value> Flavor for linking, options are gnu/darwin/link
>
>
> % ln -s lld ld
> % ./ld
> No input files
>
>
>
>
> REPOSITORY
> rL LLVM
>
> http://reviews.llvm.org/D7545
>
> EMAIL PREFERENCES
> http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150210/4a5eb5cc/attachment.html>
More information about the llvm-commits
mailing list