Return-Path: X-Original-To: apmail-mesos-issues-archive@minotaur.apache.org Delivered-To: apmail-mesos-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1DC8A176D2 for ; Mon, 6 Apr 2015 19:25:22 +0000 (UTC) Received: (qmail 63514 invoked by uid 500); 6 Apr 2015 19:25:12 -0000 Delivered-To: apmail-mesos-issues-archive@mesos.apache.org Received: (qmail 63486 invoked by uid 500); 6 Apr 2015 19:25:12 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 63476 invoked by uid 99); 6 Apr 2015 19:25:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2015 19:25:12 +0000 Date: Mon, 6 Apr 2015 19:25:12 +0000 (UTC) From: "Benjamin Mahler (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (MESOS-1122) Enable optimizations for clang MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Mahler resolved MESOS-1122. ------------------------------------ Resolution: Fixed Assignee: Cody Maloney This was fixed in [~cmaloney]'s change here: {noformat} commit ec74a1e3e3556615e68a8403cc4f62aa43f5153f Author: Cody Maloney 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 distributio ns (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 t o set 'NDEBUG' which removes assert()'s, but that is a seperate discussion. Review: https://reviews.apache.org/r/26426 {noformat} > Enable optimizations for clang > ------------------------------ > > Key: MESOS-1122 > URL: https://issues.apache.org/jira/browse/MESOS-1122 > Project: Mesos > Issue Type: Task > Components: build, technical debt > Reporter: Dominic Hamon > Assignee: Cody Maloney > Priority: Minor > > We currently only enable -O2 for g++ builds. It would be better to be consistent and also compile with optimizations for clang users. -- This message was sent by Atlassian JIRA (v6.3.4#6332)