From: NAKAMURA Takumi Date: Thu, 24 Mar 2011 07:06:45 +0000 (+0000) Subject: llvm-stub.cpp: mingw-w64 tweak. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c37c539944874175c8f147fc7253506dfa8e6c3d;p=oota-llvm.git llvm-stub.cpp: mingw-w64 tweak. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128205 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-stub/llvm-stub.c b/tools/llvm-stub/llvm-stub.c index 31c2d09c6b7..69cd6edbec5 100644 --- a/tools/llvm-stub/llvm-stub.c +++ b/tools/llvm-stub/llvm-stub.c @@ -64,7 +64,7 @@ int main(int argc, char** argv) { memcpy((char **)Args+2, argv+1, sizeof(char*)*argc); /* Run the JIT. */ -#ifndef _WIN32 +#if !defined(_WIN32) || defined(__MINGW64__) execvp(Interp, (char **)Args); /* POSIX execvp takes a char *const[]. */ #else execvp(Interp, Args); /* windows execvp takes a const char *const *. */