This patch adds the --threads option to dsymutil to process architectures in parallel. The feature is already present in the version distributed with Xcode, but was not yet upstreamed.
This is NFC as far as the linking behavior is concerned. As threads are used automatically, the current tests cover the change in implementation.
For reasons I don't fully understand, this flag breaks the WebAssembly waterfall's build. https://wasm-stat.us/builders/linux/builds/25787
Our build uses -DLLVM_BUILD_LLVM_DYLIB=ON and -DLLVM_LINK_LLVM_DYLIB=ON, and we include lld, which my theory is then that both options are statically included in libLLVM, even though they should otherwise share no code. And that's problematic.
Setting those to OFF, and even using -DBUILD_SHARED_LIBS=ON instead causes no issues.
I'm not entirely sure what to do about that and I'm pretty sure this isn't the right place for it, but this might get more eyes involved.