[PATCH] Merge lldb-platform and lldb-gdbserver into a single binary.
Ed Maste
emaste at freebsd.org
Tue Feb 10 17:32:00 PST 2015
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/
More information about the llvm-commits
mailing list