summaryrefslogtreecommitdiff
path: root/msvcc.sh
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2018-03-27 07:35:33 -0400
committerAnthony Green <green@moxielogic.com>2018-03-27 07:35:33 -0400
commit51ce3696cd0da4716d86b73a30bd89e139ec4b74 (patch)
tree02559445d23bf70fff42e533d7ffdf3ec63fb42f /msvcc.sh
parent70b93e4d863c1ff2a6498455339e17df3d7fe784 (diff)
downloadlibffi-51ce3696cd0da4716d86b73a30bd89e139ec4b74.tar.gz
Use cygpath to convert windows paths
Diffstat (limited to 'msvcc.sh')
-rwxr-xr-xmsvcc.sh10
1 files changed, 6 insertions, 4 deletions
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*)