Permalink
Browse files

Merge pull request #1500 from 9rnsr/fix9330

Issue 9330 - Cannot run dmd test suite with MSYS
  • Loading branch information...
WalterBright committed Jan 17, 2013
2 parents f4d6b72 + ab88809 commit 6873d69990be15071d93475b23e529c248c629ea
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 6873d69

Please sign in to comment.