Use cygpath to convert windows paths
authorAnthony Green <green@moxielogic.com>
Tue, 27 Mar 2018 11:35:33 +0000 (07:35 -0400)
committerAnthony Green <green@moxielogic.com>
Tue, 27 Mar 2018 11:35:33 +0000 (07:35 -0400)
msvcc.sh

index 95fcb21..7494a96 100755 (executable)
--- 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*)