[
https://issues.apache.org/jira/browse/MESOS-1985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14183590#comment-14183590
]
Cody Maloney commented on MESOS-1985:
-------------------------------------
commit ec74a1e3e3556615e68a8403cc4f62aa43f5153f
Author: Cody Maloney <[email protected]>
Date: Fri Oct 24 16:32:47 2014 -0500
Add --enable-debug and --enable-optimize flag for controlling building
debug and optimized verisons of mesos
Reworks buiding mesos in a "debug" vs. a "release" configuration. By
default, mesos is built in a developer-centric setup (No optimizations, minimal
debug info), in order to maximize developer productivity
None: '-O0 -g1'
--enable-optimize == '-O2'
--enable-debug == '-g'
--enable-optimize --enable-debug == '-O2 -g'
If a user / developer passes CXXFLAGS or CFLAGS manually, then they are not
changed / touched at all. This is important so that Mesos is a good citizen
when being built for various distributions (As well as making it so specialized
one-off groupings of flags are feasible to use).
Adds two defines for accessing what mode things are being built in: 'DEBUG'
and 'OPTIMIZE' which can be hooked into later to enable extra logging and the
like. For release builds we may want to set 'NDEBUG' which removes assert()'s,
but that is a seperate discussion.
Review: https://reviews.apache.org/r/26426
> Use more standard debug / release build flags
> ---------------------------------------------
>
> Key: MESOS-1985
> URL: https://issues.apache.org/jira/browse/MESOS-1985
> Project: Mesos
> Issue Type: Technical task
> Components: build
> Reporter: Cody Maloney
> Assignee: Cody Maloney
> Priority: Minor
>
> Currerntly we always append -O2 -g to CXXFLAGS unless --disable-optimize is
> passed. This increases build time, while not giving us many benefits.
> Update the flags so user-provided CXXFLAGS always win, and people can specify
> to build an optimized or debug build through flags.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)