mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 10:42:36 +00:00
No really cygwin, we LIKE .exe'ness.
llvm-svn: 13939
This commit is contained in:
parent
daab811ad9
commit
2abe671b13
@ -34,6 +34,14 @@ int main(int argc, char** argv) {
|
||||
Args = (const char**)malloc(sizeof(char*) * (argc+2));
|
||||
/* argv[0] is the JIT */
|
||||
Args[0] = Interp;
|
||||
|
||||
#ifdef __CYGWIN32__
|
||||
/* Cygwin strips the .exe suffix off of argv[0] to "help" us. Put it back
|
||||
* on.
|
||||
*/
|
||||
argv[0] = strcat(strcpy((char*)malloc(strlen(argv[0])+5), argv[0]), ".exe");
|
||||
#endif
|
||||
|
||||
/* argv[1] is argv[0] + ".bc". */
|
||||
Args[1] = strcat(strcpy((char*)malloc(strlen(argv[0])+4), argv[0]), ".bc");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user