mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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:
parent
bb94d4d8fe
commit
730c90a70e
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue