memory/moz.build
author Gregory Szorc <gps@mozilla.com>
Tue, 07 Nov 2017 16:38:39 -0800
changeset 441455 b5f79b0f2a3586faf692c715b443264478e921c3
parent 436724 84946a59ea8a5fae6d77053c5dc8b94ecf2e16e2
child 443900 c995692a3c92e3fc2e31849c25eb8da49afa1326
permissions -rw-r--r--
Bug 1412932 - Switch to PGO build in Makefile.in; r=ted Previously, client.mk made the decision of whether to perform a PGO build. This required passing around MOZ_PGO and invoking a separate make target if this variable was set. In this commit, we move this logic to Makefile.in. We employ a special mechanism in rules.mk to override the default make target so `make` evaluates "profiledbuild" if MOZ_PGO is set. This also required using an explicit target for $(MAKE) invocations inside the "profiledbuild" rule to avoid infinite recursion. MozReview-Commit-ID: 8sHiVspMisM

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

with Files("**"):
    BUG_COMPONENT = ("Core", "Memory Allocator")

DIRS += [
    'build',
    'mozalloc',
    'fallible',
]

if CONFIG['MOZ_WIDGET_TOOLKIT']:
    DIRS += ['volatile']

# NB: gtest dir is included in toolkit/toolkit.build due to its dependency
# on libxul.

if CONFIG['MOZ_REPLACE_MALLOC']:
    DIRS += ['replace']