Commit 51ce3696cd0da4716d86b73a30bd89e139ec4b74

Anthony Green 2018-03-27T07:35:33

Use cygpath to convert windows paths

diff --git a/msvcc.sh b/msvcc.sh
index 95fcb21..7494a96 100755
--- a/msvcc.sh
+++ b/msvcc.sh
@@ -147,13 +147,15 @@ do
       shift 1
     ;;
     -I)
-      args="$args -I$2"
-      includes="$includes -I$2"
+      p=$(cygpath -w $2)
+      args="$args -I$p"
+      includes="$includes -I$p"
       shift 2
     ;;
     -I*)
-      args="$args $1"
-      includes="$includes $1"
+      p=$(cygpath -w ${1#-I})
+      args="$args -I$p"
+      includes="$includes -I$p"
       shift 1
     ;;
     -L*)