[lld] r270963 - --threads is a flag, not a number

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 21:30:29 PDT 2016

Author: silvas
Date: Thu May 26 23:30:27 2016
New Revision: 270963

URL: http://llvm.org/viewvc/llvm-project?rev=270963&view=rev
--threads is a flag, not a number

We would previously accept `--threads=4`, but this option just turns on
threading and does not specify a number of threads.

I ran into this by accident because I was passing `--threads=<n>` but
the number didn't seem to affect anything.


Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=270963&r1=270962&r2=270963&view=diff
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Thu May 26 23:30:27 2016
@@ -150,7 +150,7 @@ def strip_debug : Flag<["--"], "strip-de
 def sysroot : Joined<["--"], "sysroot=">,
   HelpText<"Set the system root">;
-def threads : Joined<["--"], "threads">;
+def threads : Flag<["--"], "threads">;
 def trace: Flag<["--"], "trace">,
   HelpText<"Print the names of the input files">;

More information about the llvm-commits mailing list