[llvm] r220767 - [OCaml] Enable -g for debug builds.

Peter Zotov whitequark at whitequark.org
Mon Oct 27 23:15:41 PDT 2014


Author: whitequark
Date: Tue Oct 28 01:15:41 2014
New Revision: 220767

URL: http://llvm.org/viewvc/llvm-project?rev=220767&view=rev
Log:
[OCaml] Enable -g for debug builds.

We don't care about pre-3.12.1 anymore.

Modified:
    llvm/trunk/bindings/ocaml/Makefile.ocaml

Modified: llvm/trunk/bindings/ocaml/Makefile.ocaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/Makefile.ocaml?rev=220767&r1=220766&r2=220767&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/Makefile.ocaml (original)
+++ llvm/trunk/bindings/ocaml/Makefile.ocaml Tue Oct 28 01:15:41 2014
@@ -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)





More information about the llvm-commits mailing list