Skip to content

Commit 0173a91

Browse files
elmarcoPatchew Applier
authored andcommitted
configure: set the meson executable suffix/ext
Signed-off-by: Marc-André Lureau <[email protected]> Message-Id: <[email protected]>
1 parent df2d10e commit 0173a91

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

configure

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,19 @@ $mkvenv ensuregroup --dir "${source_path}/python/wheels" \
10001000
# We ignore PATH completely here: we want to use the venv's Meson
10011001
# *exclusively*.
10021002

1003-
meson="$(cd pyvenv/bin; pwd)/meson"
1003+
# for msys2
1004+
get_pwd() {
1005+
if pwd -W >/dev/null 2>&1; then
1006+
pwd -W
1007+
else
1008+
pwd
1009+
fi
1010+
}
1011+
1012+
meson="$(cd pyvenv/bin; get_pwd)/meson"
1013+
if [ -f "$meson$EXESUF" ]; then
1014+
meson="$meson$EXESUF"
1015+
fi
10041016

10051017
# Conditionally ensure Sphinx is installed.
10061018

0 commit comments

Comments
 (0)