projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed1f38
)
No really cygwin, we LIKE .exe'ness.
author
Chris Lattner
<sabre@nondot.org>
Wed, 2 Jun 2004 00:04:54 +0000
(
00:04
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 2 Jun 2004 00:04:54 +0000
(
00:04
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13939
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-stub/llvm-stub.c
patch
|
blob
|
history
diff --git
a/tools/llvm-stub/llvm-stub.c
b/tools/llvm-stub/llvm-stub.c
index 7009c8dee1a1ff85e949ce455d715e6510e8094e..931f98a3d569f4bc7332e65daf9f596f792fdb13 100644
(file)
--- a/
tools/llvm-stub/llvm-stub.c
+++ b/
tools/llvm-stub/llvm-stub.c
@@
-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");