[llvm-build] Force lit tests to run in parallel

This is achieved by setting the CMake option LLVM_LIT_ARGS. If we don't do this,
lit may decide that it only needs to run on one core.

While we're at it, also update the run.sh that we use for bisects to force ninja
to use the right number of cores while building.

Change-Id: I099697f4a377541f907d8f13f8f807c2a4f901d6
diff --git a/bisect/run.sh b/bisect/run.sh
index 6219248..0ff1d0c 100755
--- a/bisect/run.sh
+++ b/bisect/run.sh
@@ -21,6 +21,8 @@
   CORE=''
 fi fi fi fi fi
 
+PARALLEL=-j`grep -c proc /proc/cpuinfo`
+
 selfhost=false
 check=false
 cflags=$CORE
@@ -79,8 +81,9 @@
                            -DCMAKE_CXX_FLAGS="$cflags" \
                            -DLLVM_TARGETS_TO_BUILD="ARM;AArch64" \
                            -DLLVM_BUILD_TESTS=True \
-                           -DLLVM_ENABLE_ASSERTIONS=True
-  safe_run ninja
+                           -DLLVM_ENABLE_ASSERTIONS=True \
+                           -DLLVM_LIT_ARGS="-sv $PARALLEL"
+  safe_run ninja $PARALLEL
   if $check; then
     safe_run ninja check-all
   fi