diff options
author | Tom Stellard <[email protected]> | 2013-05-06 09:58:56 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-05-06 11:17:03 -0700 |
commit | 730c90a70ec47ad6e514b84295f8047fb986130a (patch) | |
tree | 2c7b1690e2d21a509cf5a3878c20590f02552e48 /src/gallium/auxiliary | |
parent | bb94d4d8fee13622d0c1452b78b716c82946c11f (diff) |
gallivm: Fix build for LLVM < 3.3
The C API versions of the LLVM multithreaded functions were added in
LLVM 3.3.
Diffstat (limited to 'src/gallium/auxiliary')
-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 } }; |