Skip to content

Commit

Permalink
Convert absolute paths to Windows form for options like /FI in msvc-w…
Browse files Browse the repository at this point in the history
…ine.sh

This handling is generally specific to cl.exe only, but hopefully
this doesn't cause issues for other tools.
  • Loading branch information
mstorsjo committed Mar 15, 2022
1 parent 2f011e2 commit 4a1b93d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wrappers/wine-msvc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ ARGS=()
while [ $# -gt 0 ]; do
a=$1
case $a in
[-/][A-Za-z][A-Za-z]/*)
opt=${a:0:3}
path=${a:3}
if [ -d "$(dirname "$path")" ] && [ "$(dirname "$path")" != "/" ]; then
a=${opt}z:$path
fi
;;
/*)
if [ -d "$(dirname "$a")" ] && [ "$(dirname "$a")" != "/" ]; then
a=z:$a
Expand Down

0 comments on commit 4a1b93d

Please sign in to comment.