Attempt to fix LLVM_ENABLE_THREADS=OFF build after r358665

llvm-svn: 358858
This commit is contained in:
Nico Weber 2019-04-21 19:18:41 +00:00
parent ce67a41741
commit 18cfd9fdaf
1 changed files with 2 additions and 0 deletions

View File

@ -8723,7 +8723,9 @@ void clang::setThreadBackgroundPriority() {
if (getenv("LIBCLANG_BGPRIO_DISABLE")) if (getenv("LIBCLANG_BGPRIO_DISABLE"))
return; return;
#if LLVM_ENABLE_THREADS
llvm::set_thread_priority(llvm::ThreadPriority::Background); llvm::set_thread_priority(llvm::ThreadPriority::Background);
#endif
} }
void cxindex::printDiagsToStderr(ASTUnit *Unit) { void cxindex::printDiagsToStderr(ASTUnit *Unit) {