[OCaml] Enable -g for debug builds.
[oota-llvm.git] / bindings / ocaml / Makefile.ocaml
index 78901b5de97e429eeebad5a7271af0346a6bff4f..7b26caf6bb633bb5cf97476593ba1f34434508e3 100644 (file)
@@ -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)