summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-06-22 17:22:47 +0000
committerIan Lynagh <igloo@earth.li>2010-06-22 17:22:47 +0000
commitd86f00770d315f0099ad3a4258f39e38735c8a9f (patch)
tree53eaf56acc24d692b153cc3c586b4b3dc789438c /driver
parenta14ab74c5d2803e3f1b349031430a399608e6bfd (diff)
downloadhaskell-d86f00770d315f0099ad3a4258f39e38735c8a9f.tar.gz
Make the ghci.exe wrapper call the right ghc.exe
Diffstat (limited to 'driver')
-rw-r--r--driver/ghci/ghci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/ghci/ghci.c b/driver/ghci/ghci.c
index 03a8f98140..06165b54e7 100644
--- a/driver/ghci/ghci.c
+++ b/driver/ghci/ghci.c
@@ -9,6 +9,7 @@
#include <string.h>
int main(int argc, char** argv) {
+ char *binDir;
char *exePath;
char *preArgv[1];
@@ -18,7 +19,8 @@ int main(int argc, char** argv) {
fflush(stdout);
}
- exePath = "ghc.exe";
+ binDir = getExecutablePath();
+ exePath = mkString("%s/ghc.exe", binDir);
preArgv[0] = "--interactive";
run(exePath, 1, preArgv, argc - 1, argv + 1);