Skip to content

Commit

Permalink
Merge pull request ocaml#63 from dra27/fix-win-configure
Browse files Browse the repository at this point in the history
Fix configuration process on Windows
  • Loading branch information
gerdstolpmann authored Sep 9, 2024
2 parents 848db20 + 72d2152 commit f1ddc0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ if [ -z "$ocaml_sitelib" ]; then
fi

ocamlpath="${ocaml_sitelib}"
if [ ${use_cygpath} -gt 0 ]; then
cygpath_to_unix ocamlpath
fi
if [ $ocaml_major -ge 5 ]; then
# OCaml 5.0+ installs its own META files under the stdlib directory.
# If findlib has been configured -sitelib $(ocamlc -where) then there's
Expand Down
2 changes: 1 addition & 1 deletion tools/patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ varvalue="$2"
if [ "${USE_CYGPATH}" = "1" ]; then
#varvalue="$(echo "$varvalue" | sed -e 's;/;\\;g')"
varvalue="$(cygpath -w -l $3 "$varvalue")"
varvalue="$(echo "$varvalue" | sed -e 's;\\;\\\\\\\\;g')"
varvalue="$(echo "$varvalue" | sed -e 's;\\;\\\\\\\\;g;s/;/\\;/g')"
# e.g. c:\file is transformed to c:\\\\file
else
case `uname` in
Expand Down

0 comments on commit f1ddc0a

Please sign in to comment.