In ghc-inplace, flush stdout after giving debugging output
authorIan Lynagh <igloo@earth.li>
Fri, 24 Aug 2007 13:27:02 +0000 (13:27 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 24 Aug 2007 13:27:02 +0000 (13:27 +0000)
compiler/ghc-inplace.c

index 83f6834..2e345bc 100644 (file)
@@ -36,6 +36,7 @@ int main(int argc, char **argv) {
     args[2] = "-fhardwire-lib-paths";
     if ((argc >= 2) && (strcmp(argv[1], "-v") == 0)) {
         printf("Using %s %s %s\n", args[0], args[1], args[2]);
+        fflush(stdout);
     }
     memcpy(args + 3, argv + 1, sizeof(char *) * (argc - 1));
     args[argc+2] = NULL;