diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index 897f7ffb276..1e5adb782b8 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -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 } }; |