mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
No really cygwin, we LIKE .exe'ness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13939 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ed1f38ea6
commit
f7e92b1dcf
@ -34,6 +34,14 @@ int main(int argc, char** argv) {
|
|||||||
Args = (const char**)malloc(sizeof(char*) * (argc+2));
|
Args = (const char**)malloc(sizeof(char*) * (argc+2));
|
||||||
/* argv[0] is the JIT */
|
/* argv[0] is the JIT */
|
||||||
Args[0] = Interp;
|
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". */
|
/* argv[1] is argv[0] + ".bc". */
|
||||||
Args[1] = strcat(strcpy((char*)malloc(strlen(argv[0])+4), argv[0]), ".bc");
|
Args[1] = strcat(strcpy((char*)malloc(strlen(argv[0])+4), argv[0]), ".bc");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user