[PATCH] D22321: Update error message to use "ld.lld" instead of "lld -flavor gnu".
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 14 07:57:06 PDT 2016
LGTM
On 13 July 2016 at 19:25, Rui Ueyama <ruiu at google.com> wrote:
> ruiu created this revision.
> ruiu added a reviewer: rafael.
> ruiu added a subscriber: llvm-commits.
>
> Dispatching based on argv[0] seems to be more convenient for users
> than dispatching based on -flavor option. Currently, when a user
> invoke LLD as "lld", we recommend them pass -flavor option. This
> patch changes the message so that we recommend use ld.lld, ld or
> lld-link instead.
>
> http://reviews.llvm.org/D22321
>
> Files:
> tools/lld/lld.cpp
>
> Index: tools/lld/lld.cpp
> ===================================================================
> --- tools/lld/lld.cpp
> +++ tools/lld/lld.cpp
> @@ -109,7 +109,7 @@
> case Darwin:
> return !mach_o::link(Args);
> default:
> - die("-flavor option is missing. Available flavors are "
> - "gnu, darwin or link.");
> + die("lld is a generic driver.\n"
> + "Invoke ld.lld (Unix), ld (Mac) or lld-link (Windows) instead.");
> }
> }
>
>
More information about the llvm-commits
mailing list