mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Provide configuration support and usage for MINGW32 platform
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,12 +14,18 @@
|
||||
#include "Win32.h"
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#include <imagehlp.h>
|
||||
#include <imagehlp.h>
|
||||
#else
|
||||
#include <dbghelp.h>
|
||||
#include <dbghelp.h>
|
||||
#endif
|
||||
|
||||
#pragma comment(lib, "dbghelp.lib")
|
||||
#ifdef __MINGW32__
|
||||
#if (HAVE_LIBIMAGEHLP != 1)
|
||||
#error "libimagehlp.a should be present"
|
||||
#endif
|
||||
#else
|
||||
#pragma comment(lib, "dbghelp.lib")
|
||||
#endif
|
||||
|
||||
namespace llvm {
|
||||
using namespace sys;
|
||||
|
@@ -16,7 +16,13 @@
|
||||
#include <malloc.h>
|
||||
#include <io.h>
|
||||
|
||||
#pragma comment(lib, "psapi.lib")
|
||||
#ifdef __MINGW32__
|
||||
#if (HAVE_LIBPSAPI != 1)
|
||||
#error "libpsapi.a should be present"
|
||||
#endif
|
||||
#else
|
||||
#pragma comment(lib, "psapi.lib")
|
||||
#endif
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//=== WARNING: Implementation here must contain only Win32 specific code
|
||||
|
@@ -16,14 +16,20 @@
|
||||
#include <vector>
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#include <imagehlp.h>
|
||||
#include <imagehlp.h>
|
||||
#else
|
||||
#include <dbghelp.h>
|
||||
#include <dbghelp.h>
|
||||
#endif
|
||||
#include <psapi.h>
|
||||
|
||||
#pragma comment(lib, "psapi.lib")
|
||||
#pragma comment(lib, "dbghelp.lib")
|
||||
#ifdef __MINGW32__
|
||||
#if ((HAVE_LIBIMAGEHLP != 1) || (HAVE_LIBPSAPI != 1))
|
||||
#error "libimagehlp.a & libpsapi.a should be present"
|
||||
#endif
|
||||
#else
|
||||
#pragma comment(lib, "psapi.lib")
|
||||
#pragma comment(lib, "dbghelp.lib")
|
||||
#endif
|
||||
|
||||
// Forward declare.
|
||||
static LONG WINAPI LLVMUnhandledExceptionFilter(LPEXCEPTION_POINTERS ep);
|
||||
|
Reference in New Issue
Block a user