Permalink
Browse files

fix Issue 9330 - Cannot run dmd test suite with MSYS

  • Loading branch information...
1 parent a3635f6 commit ab88809d64abb97d1e0387ba199380d67319dfb1 @9rnsr 9rnsr committed Jan 17, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/link.c
View
@@ -763,6 +763,12 @@ int executecmd(char *cmd, char *args, int useenv)
}
}
+#if _WIN32
+ // Normalize executable path separators, see Bugzilla 9330
+ for (char *p=cmd; *p; ++p)
+ if (*p == '/') *p = '\\';
+#endif
+
status = executearg0(cmd,args);
#if _WIN32
if (status == -1)

0 comments on commit ab88809

Please sign in to comment.