From 2c1a9da83f386307bcb4a2a082c7a94627757ee1 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Fri, 27 May 2016 04:30:27 +0000 Subject: [PATCH] --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=` but the number didn't seem to affect anything. llvm-svn: 270963 --- lld/ELF/Options.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index 2afd7c32b5f2..99b94ba3cd4e 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -150,7 +150,7 @@ def strip_debug : Flag<["--"], "strip-debug">, 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">;