[Git][ghc/ghc][master] Configure: canonicalise PythonCmd on Windows

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sat Jul 15 07:24:28 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
c8863828 by sheaf at 2023-07-15T03:24:06-04:00
Configure: canonicalise PythonCmd on Windows

This change makes PythonCmd resolve to a canonical absolute path on
Windows, which prevents HLS getting confused (now that we have a
build-time dependency on python).

fixes #23652

- - - - -


1 changed file:

- m4/find_python.m4


Changes:

=====================================
m4/find_python.m4
=====================================
@@ -5,6 +5,11 @@
 AC_DEFUN([FIND_PYTHON],[
     dnl Prefer the mingw64 distribution on Windows due to #17483.
     AC_PATH_PROG([PYTHON], [python3], [], [/mingw64/bin $PATH])
-    PythonCmd="$PYTHON"
+    if test "$HostOS" = "mingw32"
+    then
+      PythonCmd=$(cygpath -m "$PYTHON")
+    else
+      PythonCmd="$PYTHON"
+    fi
     AC_SUBST([PythonCmd])
 ])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c8863828a1f6f0badb255d245d73bcc094e76838

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c8863828a1f6f0badb255d245d73bcc094e76838
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230715/244c9ba6/attachment.html>


More information about the ghc-commits mailing list