mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-04 14:03:14 +01:00
Add code to compile ldmd with MSVC.
This commit is contained in:
@@ -50,6 +50,9 @@
|
||||
#include <cstdlib>
|
||||
#include <numeric>
|
||||
#include <vector>
|
||||
#if defined(_MSC_VER)
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
#include "llvm/Support/Program.h"
|
||||
#include "llvm/Support/SystemUtils.h"
|
||||
@@ -59,6 +62,10 @@
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
namespace ls = llvm::sys;
|
||||
|
||||
// We reuse DMD's response file parsing routine for maximum compatibilty - it
|
||||
|
||||
Reference in New Issue
Block a user