[Support] Define llvm::parallel::strategy for -DLLVM_ENABLE_THREADS=off builds after D76885

This commit is contained in:
Fangrui Song 2020-07-08 10:50:53 -07:00
parent 0bd7e34508
commit 3be3eb48cd

View File

@ -9,9 +9,6 @@
#include "llvm/Support/Parallel.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/ManagedStatic.h"
#if LLVM_ENABLE_THREADS
#include "llvm/Support/Threading.h"
#include <atomic>
@ -22,6 +19,8 @@
llvm::ThreadPoolStrategy llvm::parallel::strategy;
#if LLVM_ENABLE_THREADS
namespace llvm {
namespace parallel {
namespace detail {