gallivm: Fix build for LLVM < 3.3
The C API versions of the LLVM multithreaded functions were added in LLVM 3.3.
This commit is contained in:
@@ -85,9 +85,15 @@ class LLVMEnsureMultithreaded {
|
||||
public:
|
||||
LLVMEnsureMultithreaded()
|
||||
{
|
||||
#if HAVE_LLVM < 0x0303
|
||||
if (!llvm::llvm_is_multithreaded()) {
|
||||
llvm::llvm_start_multithreaded();
|
||||
}
|
||||
#else
|
||||
if (!LLVMIsMultithreaded()) {
|
||||
LLVMStartMultithreaded();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user