Skip to content

Commit

Permalink
Merge pull request #12 from aryx/absname
Browse files Browse the repository at this point in the history
Add -absname via dynamic bin/ocamlcflags
  • Loading branch information
aryx authored Apr 27, 2024
2 parents 333913a + bb549a0 commit 3a7e12d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions bin/ocamlcflags
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

OCAML_VERSION_MAJOR=`ocamlc -version | cut -f1 -d.`
#OCAML_VERSION_MINOR = `ocamlopt -version | cut -f2 -d.`
#OCAML_VERSION_POINT = `ocamlopt -version | cut -f3 -d.`

case "$OCAML_VERSION_MAJOR" in
"3") ;;
"4")
echo "-absname -bin-annot";;
"5")
echo "-absname -bin-annot";;
"*") ;;
esac
4 changes: 2 additions & 2 deletions mkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ OPT=.opt

# Limit to just stdcompat! This is Xix!
EXTERNAL_LIB=`ocamlfind query stdcompat`
EXTRA_FLAGS=`ocamlcflags`

# -g so we can get good backtrace
#TODO: -bin-annot -absname
#WARNING_FLAGS?=-w +A-4-29-6-45-41-44-48 -warn-error +a
#OCAMLCFLAGS=-thread $(WARNING_FLAGS) $(OCAMLCFLAGS_EXTRA)
COMPFLAGS=-I $EXTERNAL_LIB -g
COMPFLAGS=-I $EXTERNAL_LIB -g $EXTRA_FLAGS

# We need -g for good backtrace.
# We need -custom because of dllstdcompat__stubs, otherwise
Expand Down

0 comments on commit 3a7e12d

Please sign in to comment.