Skip to content

Commit

Permalink
Support flexdll 0.43/0.44 vendor-supplied patches
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahbeckford committed Sep 28, 2024
1 parent 321d4ac commit 2467e50
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Pending

* Support vendor-supplied patches for flexdll 0.43 and (unreleased) 0.44. Used by DkSDK CMake's `110-ocaml-lang`.

## 2.1.3

* Backport from 5.2.0 of [Linear computation of closure environments](https://github.com/ocaml/ocaml/pull/12222)
to fix performance bug <https://discuss.ocaml.org/t/scaling-factors-when-compiling-mutually-recursive-definitions/14708>

Expand Down
19 changes: 14 additions & 5 deletions src/r-c-ocaml-1-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ set_ocaml_version_stems() {
4.*) VERSION_STEMS+=("4") ;;
5.*) VERSION_STEMS+=("5") ;;
*)
echo "FATAL: Unsupported stemming case 1 for version $set_version_stems_VER" >&2
echo "FATAL: Unsupported stemming case 1 for ocaml version $set_version_stems_VER" >&2
exit 123
;;
esac
Expand All @@ -480,16 +480,17 @@ set_ocaml_version_stems() {
5.1.*) VERSION_STEMS+=("5_1") ;;
5.2.*) VERSION_STEMS+=("5_2") ;;
*)
echo "FATAL: Unsupported stemming case 2 for version $set_version_stems_VER" >&2
echo "FATAL: Unsupported stemming case 2 for ocaml version $set_version_stems_VER" >&2
exit 123
;;
esac
case "$set_version_stems_VER" in
4.14.0) VERSION_STEMS+=("4_14_0") ;;
4.14.1) VERSION_STEMS+=("4_14_1") ;;
4.14.2) VERSION_STEMS+=("4_14_2") ;;
4.14.3) VERSION_STEMS+=("4_14_3") ;;
*)
echo "FATAL: Unsupported stemming case 3 for version $set_version_stems_VER" >&2
echo "FATAL: Unsupported stemming case 3 for ocaml version $set_version_stems_VER" >&2
exit 123
;;
esac
Expand All @@ -500,12 +501,20 @@ set_flexdll_version_stems() {
VERSION_STEMS=()
case "$set_version_stems_VER" in
0.*) VERSION_STEMS+=("0") ;;
*)
echo "FATAL: Unsupported stemming case 1 for flexdll version $set_version_stems_VER" >&2
exit 123
;;
esac
case "$set_version_stems_VER" in
0.39) VERSION_STEMS+=("0_39") ;;
esac
case "$set_version_stems_VER" in
0.42) VERSION_STEMS+=("0_42") ;;
0.43) VERSION_STEMS+=("0_43") ;;
0.44) VERSION_STEMS+=("0_44") ;;
*)
echo "FATAL: Unsupported stemming case 2 for flexdll version $set_version_stems_VER" >&2
exit 123
;;
esac
}
# Sets the array PATCHES and accumulates dkmldir/ relative paths, including
Expand Down

0 comments on commit 2467e50

Please sign in to comment.