mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1802232 - Set CC and CFLAGS for the gyp processor. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D162916
This commit is contained in:
parent
e14cb0f9a3
commit
ced1d68660
@ -4,18 +4,20 @@
|
||||
|
||||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
import gyp
|
||||
import gyp.msvs_emulation
|
||||
import six
|
||||
import sys
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import gyp
|
||||
import gyp.msvs_emulation
|
||||
import mozpack.path as mozpath
|
||||
from mozpack.files import FileFinder
|
||||
from .sandbox import alphabetical_sorted
|
||||
from .context import ObjDirPath, SourcePath, TemplateContext, VARIABLES
|
||||
import six
|
||||
from mozbuild import shellutil
|
||||
from mozbuild.util import expand_variables
|
||||
from mozpack.files import FileFinder
|
||||
|
||||
from .context import VARIABLES, ObjDirPath, SourcePath, TemplateContext
|
||||
from .sandbox import alphabetical_sorted
|
||||
|
||||
# Define this module as gyp.generator.mozbuild so that gyp can use it
|
||||
# as a generator under the name "mozbuild".
|
||||
@ -443,6 +445,12 @@ class GypProcessor(object):
|
||||
"build_files": [path],
|
||||
"root_targets": None,
|
||||
}
|
||||
# The NSS gyp configuration uses CC and CFLAGS to determine the
|
||||
# floating-point ABI on arm.
|
||||
os.environ.update(
|
||||
CC=config.substs["CC"],
|
||||
CFLAGS=shellutil.quote(*config.substs["CC_BASE_FLAGS"]),
|
||||
)
|
||||
|
||||
if gyp_dir_attrs.no_chromium:
|
||||
includes = []
|
||||
|
Loading…
Reference in New Issue
Block a user