Skip to content

Commit

Permalink
Fix autodetection of -opaque and -g
Browse files Browse the repository at this point in the history
Fixes ocaml#78
  • Loading branch information
stedolan committed Sep 22, 2024
1 parent f1ddc0a commit 41c43a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,15 @@ ocaml -I +compiler-libs itest-aux/ppx.ml >/dev/null || {
echo "Checking for ocamlc -opaque..."

opaque="-opaque"
ocamlc -opaque >/dev/null 2>/dev/null || opaque=""
ocamlc -opaque -version >/dev/null 2>/dev/null || opaque=""

######################################################################
# Check for ocamlopt -g

echo "Checking for ocamlopt -g..."

native_debugging_info="-g"
ocamlopt -g >/dev/null 2>/dev/null || native_debugging_info=""
ocamlopt -g -version >/dev/null 2>/dev/null || native_debugging_info=""

######################################################################
# Configure libraries
Expand Down

0 comments on commit 41c43a9

Please sign in to comment.