diff options
author | José Fonseca <[email protected]> | 2010-01-10 11:20:11 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-01-10 11:20:11 +0000 |
commit | cdc11056deaf2ea4a6b8f834f7074dce7b49d9b1 (patch) | |
tree | 532533eb2795d95f2090841d4f011061ad148024 /src | |
parent | a921458c1608a140ccb8649bdc26305af0de26e3 (diff) |
llvmpipe: Yet another hack to get release LLVM static libraries to link in debug builds.
Diffstat (limited to 'src')
-rw-r--r-- | 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 d3f78c06d92..6e79438ead0 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 |