Mesa (master): llvmpipe: Yet another hack to get release LLVM static libraries to link in debug builds .

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sun Jan 10 11:22:33 UTC 2010


Module: Mesa
Branch: master
Commit: cdc11056deaf2ea4a6b8f834f7074dce7b49d9b1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdc11056deaf2ea4a6b8f834f7074dce7b49d9b1

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sun Jan 10 11:20:11 2010 +0000

llvmpipe: Yet another hack to get release LLVM static libraries to link in debug builds.

---

 src/gallium/drivers/llvmpipe/lp_bld_misc.cpp |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_bld_misc.cpp b/src/gallium/drivers/llvmpipe/lp_bld_misc.cpp
index d3f78c0..6e79438 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_misc.cpp
+++ b/src/gallium/drivers/llvmpipe/lp_bld_misc.cpp
@@ -59,3 +59,17 @@ LLVMInitializeNativeTarget(void)
 
 
 #endif
+
+
+/* 
+ * Hack to allow the linking of release LLVM static libraries on a debug build.
+ *
+ * See also:
+ * - http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/7234ea2b-0042-42ed-b4e2-5d8644dfb57d
+ */
+#if defined(_MSC_VER) && defined(_DEBUG)
+#include <crtdefs.h>
+extern "C" {
+   _CRTIMP void __cdecl _invalid_parameter_noinfo(void) {}
+}
+#endif




More information about the mesa-commit mailing list