[PATCH] D22321: Update error message to use "ld.lld" instead of "lld -flavor gnu".

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 16:25:27 PDT 2016


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.");
   }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22321.63879.patch
Type: text/x-patch
Size: 434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160713/b5e06267/attachment.bin>


More information about the llvm-commits mailing list