Skip to content

Commit 2ba7b13

Browse files
committed
Workaround for MSYS2 builds
1 parent 9def337 commit 2ba7b13

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

make/functions.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,10 @@ vmajor = $(shell echo "$(strip $1)" | sed -E 's/([0-9]+)\.([0-9
6161
vminor = $(shell echo "$(strip $1)" | sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+)(-(.*))?/\2/')
6262
vmicro = $(shell echo "$(strip $1)" | sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+)(-(.*))?/\3/')
6363
vbranch = $(shell echo "$(strip $1)" | sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+)(-(.*))?/\5/')
64+
65+
ifeq ("$(MSYSTEM)","")
66+
pathconv = $1
67+
else
68+
pathconv = $(shell cygpath -w "$1")
69+
endif
70+

0 commit comments

Comments
 (0)