[llvm] r220767 - [OCaml] Enable -g for debug builds.
Eric Christopher
echristo at gmail.com
Mon Oct 27 23:39:50 PDT 2014
On Mon, Oct 27, 2014 at 11:15 PM, Peter Zotov <whitequark at whitequark.org> wrote:
> 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
>
Can't have debug + optimized builds?
-eric
> Compile.CMI := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
> Compile.CMO := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list