Skip to content

Commit

Permalink
Fix msvcc.sh for JNA
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Nov 29, 2020
1 parent b59f063 commit 1e2a118
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions native/libffi/msvcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,24 +165,24 @@ do
shift 1
;;
-I)
p=$(cygpath -m $2)
args="$args -I$p"
includes="$includes -I$p"
p=$(cygpath -ma "$2")
args="$args -I\"$p\""
includes="$includes -I\"$p\""
shift 2
;;
-I*)
p=$(cygpath -m ${1#-I})
args="$args -I$p"
includes="$includes -I$p"
p=$(cygpath -ma "${1#-I}")
args="$args -I\"$p\""
includes="$includes -I\"$p\""
shift 1
;;
-L)
p=$(cygpath -m $2)
p=$(cygpath -ma $2)
linkargs="$linkargs -LIBPATH:$p"
shift 2
;;
-L*)
p=$(cygpath -m ${1#-L})
p=$(cygpath -ma ${1#-L})
linkargs="$linkargs -LIBPATH:$p"
shift 1
;;
Expand Down Expand Up @@ -256,12 +256,12 @@ do
shift 2
;;
*.S)
src=$1
src="$(cygpath -ma $1)"
assembly="true"
shift 1
;;
*.c)
args="$args $1"
args="$args $(cygpath -ma $1)"
shift 1
;;
*)
Expand Down Expand Up @@ -312,7 +312,7 @@ if [ -n "$assembly" ]; then
echo "$cl -nologo -EP $includes $defines $src > $ppsrc"
fi

"$cl" -nologo -EP $includes $defines $src > $ppsrc || exit $?
eval "\"$cl\" -nologo -EP $includes $defines $src" > $ppsrc || exit $?
output="$(echo $output | sed 's%/F[dpa][^ ]*%%g')"
if [ $ml = "armasm" ]; then
args="-nologo -g -oldit $armasm_output $ppsrc -errorReport:prompt"
Expand Down

0 comments on commit 1e2a118

Please sign in to comment.