Module: Mesa Branch: master Commit: 730c90a70ec47ad6e514b84295f8047fb986130a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=730c90a70ec47ad6e514b84295f8047fb986130a
Author: Tom Stellard <[email protected]> Date: Mon May 6 09:58:56 2013 -0700 gallivm: Fix build for LLVM < 3.3 The C API versions of the LLVM multithreaded functions were added in LLVM 3.3. --- 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 897f7ff..1e5adb7 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 } }; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
