Skip to content

Commit

Permalink
use -custom and disable opam-depext
Browse files Browse the repository at this point in the history
  • Loading branch information
aryx committed Apr 19, 2024
1 parent eb4a150 commit 320de22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-test.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ local job = {
uses: "ocaml/setup-ocaml@v2",
with: {
'ocaml-compiler': '${{ matrix.ocaml-compiler }}',
// available only for OCaml >= 4.0.0 and we want also 3.10.0
'opam-depext': false,
}
},
{
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-depext: false
- name: Install dependencies
run: |
opam install --deps-only .
Expand Down
6 changes: 5 additions & 1 deletion bootstrap-mk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ EXTERNAL_LIB=`ocamlfind query stdcompat`
#TODO? -bin-annot -absname -dtypes -g
OCAMLCFLAGS="-I $EXTERNAL_LIB"

# We need -custom below because of dllstdcompat__stubs, otherwise
# we would need to set CAML_LD_LIBRARY_PATH before running the programs.
# LATER: would be good to remove if one day we want to store
# a BOOTSTRAP/mk and we want a really portable bytecode across platforms.
#TODO? for windows under cygwin might need -custom
EXTRALINKFLAGS="-I $EXTERNAL_LIB stdcompat.cma"
EXTRALINKFLAGS="-I $EXTERNAL_LIB stdcompat.cma -custom"

TOP=`pwd`

Expand Down

0 comments on commit 320de22

Please sign in to comment.