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

Eric Christopher echristo at gmail.com
Fri Oct 31 17:51:12 PDT 2014


On Fri Oct 31 2014 at 2:41:17 AM Peter Zotov <whitequark at whitequark.org>
wrote:

> On 2014-10-28 09:39, Eric Christopher wrote:
> >> -# -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?
>
> Apparently, not (from Makefile.config.in):
>
> # When ENABLE_OPTIMIZED is enabled, LLVM code is optimized and output is
> put
> # into the "Release" directories. Otherwise, LLVM code is not optimized
> and
> # output is put in the "Debug" directories.
> #ENABLE_OPTIMIZED = 1
> @ENABLE_OPTIMIZED@
>
>
configure --enable-optimized --enable-debug-symbols --disable-asserts will
get you Release+Debug.

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141101/60b972b5/attachment.html>


More information about the llvm-commits mailing list