llvm-stub.cpp: mingw-w64 tweak.

llvm-svn: 128205
This commit is contained in:
NAKAMURA Takumi 2011-03-24 07:06:45 +00:00
parent 9d660cc8b7
commit cb3235ade0

View File

@ -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 *. */