From 18cfd9fdaf0b01e7a9b2cc67fddfeed877c8fc8f Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 21 Apr 2019 19:18:41 +0000 Subject: Attempt to fix LLVM_ENABLE_THREADS=OFF build after r358665 llvm-svn: 358858 --- clang/tools/libclang/CIndex.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/tools/libclang/CIndex.cpp') diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 07aeb50695b..46e6340d66d 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -8723,7 +8723,9 @@ void clang::setThreadBackgroundPriority() { if (getenv("LIBCLANG_BGPRIO_DISABLE")) return; +#if LLVM_ENABLE_THREADS llvm::set_thread_priority(llvm::ThreadPriority::Background); +#endif } void cxindex::printDiagsToStderr(ASTUnit *Unit) { -- cgit v1.2.3