mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
`llvm::StdThreadPool` is only available when LLVM_ENABLE_THREADS is enabled. LLVM defines `DefaultThreadPool` type alias, which is always available regardless of the threads enabled. This change allows building the library without threads enabled, especially for Emscripten toolchain. ``` #if LLVM_ENABLE_THREADS using DefaultThreadPool = StdThreadPool; #else using DefaultThreadPool = SingleThreadExecutor; #endif ```
8.5 KiB
8.5 KiB