[lld] r301446 - Merge r298568: Print out "suppoted targets"

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 12:20:41 PDT 2017


Author: ruiu
Date: Wed Apr 26 14:20:41 2017
New Revision: 301446

URL: http://llvm.org/viewvc/llvm-project?rev=301446&view=rev
Log:
Merge r298568: Print out "suppoted targets"

Modified:
    lld/branches/release_40/ELF/DriverUtils.cpp

Modified: lld/branches/release_40/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/branches/release_40/ELF/DriverUtils.cpp?rev=301446&r1=301445&r2=301446&view=diff
==============================================================================
--- lld/branches/release_40/ELF/DriverUtils.cpp (original)
+++ lld/branches/release_40/ELF/DriverUtils.cpp Wed Apr 26 14:20:41 2017
@@ -120,6 +120,20 @@ opt::InputArgList ELFOptTable::parse(Arr
 void elf::printHelp(const char *Argv0) {
   ELFOptTable Table;
   Table.PrintHelp(outs(), Argv0, "lld", false);
+  outs() << "\n";
+
+  // Scripts generated by Libtool versions up to at least 2.4.6 (the most
+  // recent version as of March 2017) expect /supported targets:.* elf/ in
+  // a message for the -help option. If it doesn't match, the scripts
+  // assume that the linker doesn't support very basic features such as
+  // shared libraries. Therefore, we need to print out at least "elf".
+  // Here, we print out all the targets that we support.
+  outs() << Argv0 << ": supported targets: "
+         << "elf32-i386 elf32-iamcu elf32-littlearm elf32-powerpc "
+         << "elf32-tradbigmips elf32-tradlittlemips elf32-x86-64 "
+         << "elf32-ntradbigmips elf32-ntradlittlemips elf32-x86-64 "
+         << "elf64-amdgpu elf64-littleaarch64 elf64-powerpc "
+         << "elf64-tradbigmips elf64-tradlittlemips elf64-x86-64\n";
 }
 
 // Reconstructs command line arguments so that so that you can re-run




More information about the llvm-commits mailing list