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

This commit is contained in:
José Fonseca 2010-01-10 11:20:11 +00:00
parent a921458c16
commit cdc11056de
1 changed files with 14 additions and 0 deletions

View File

@ -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