Permalink
Browse files

Fix msvc generation under msys2

  • Loading branch information...
1 parent 9c3e76f commit b8aba6289caf8b923526901303c784489b27a4b9 @janschulz janschulz committed Jul 18, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 tools/create-msvc-projectfile.py
@@ -2,6 +2,7 @@
import sys
import os.path
+import re
try:
from subprocess import check_output
@@ -44,7 +45,9 @@ def runmake(makefile, target):
" -f " + os.path.basename(makefile) +
" " + target, shell=True)
out = out.decode(sys.stdout.encoding or "utf8")
- return out.replace("/", "\\")
+ out = out.replace("/", "\\")
+ out = re.sub("make.*'.*'", "", out) # msys2 make adds "make[x]: entering '<dir>'""
+ return out
def rreplace(s, old, new, occurrence):
li = s.rsplit(old, occurrence)

0 comments on commit b8aba62

Please sign in to comment.