build/buildconfig.py
author Jan de Mooij <jdemooij@mozilla.com>
Sat, 03 Jun 2017 17:29:17 +0200
changeset 412678 908a9b9835446178c801ea908c8207d58bf8dce4
parent 394395 0041f17d932f68322f8693a05574f9870299eb12
child 437012 cb773c661e0ca0bf297e977343076bef34411523
permissions -rw-r--r--
Bug 1358135 part 1 - Fix some browser tests to trigger a shrinking GC instead of a normal GC. r=jonco

# 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/.

import os
import sys
from mozbuild.base import MozbuildObject

config = MozbuildObject.from_environment()

for var in ('topsrcdir', 'topobjdir', 'defines', 'non_global_defines',
            'substs'):
    value = getattr(config, var)
    setattr(sys.modules[__name__], var, value)

substs = dict(substs)

for var in os.environ:
    if var not in ('CPP', 'CXXCPP', 'SHELL') and var in substs:
        substs[var] = os.environ[var]