Skip to content

Commit

Permalink
[OCaml] Enable -g for debug builds.
Browse files Browse the repository at this point in the history
We don't care about pre-3.12.1 anymore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220767 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
whitequark committed Oct 28, 2014
1 parent d02697b commit 693bfa5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bindings/ocaml/Makefile.ocaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ OCAMLAFLAGS += $(patsubst %,-cclib %, \
endif
endif

# -g was introduced in 3.10.0.
#ifneq ($(ENABLE_OPTIMIZED),1)
# OCAMLDEBUGFLAG := -g
#endif
ifneq ($(ENABLE_OPTIMIZED),1)
OCAMLDEBUGFLAG := -g
endif

Compile.CMI := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
Compile.CMO := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
Expand Down

0 comments on commit 693bfa5

Please sign in to comment.