Skip to content

Commit 2c1a9da

Browse files
committed
--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. llvm-svn: 270963
1 parent 18c4852 commit 2c1a9da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def strip_debug : Flag<["--"], "strip-debug">,
150150
def sysroot : Joined<["--"], "sysroot=">,
151151
HelpText<"Set the system root">;
152152

153-
def threads : Joined<["--"], "threads">;
153+
def threads : Flag<["--"], "threads">;
154154

155155
def trace: Flag<["--"], "trace">,
156156
HelpText<"Print the names of the input files">;

0 commit comments

Comments
 (0)