Bug 1773223 - Remove variable expansion in the GN processor. r=firefox-build-system-reviewers,andi

This was cargo culted from the gyp processor, but is not used.

Differential Revision: https://phabricator.services.mozilla.com/D149206
This commit is contained in:
Mike Hommey 2022-06-20 21:50:58 +00:00
parent 9ed6ee8e5b
commit 2d53f2f5d7

View File

@ -17,7 +17,7 @@ from mozbuild.backend.base import BuildBackend
import mozpack.path as mozpath
from mozbuild.frontend.sandbox import alphabetical_sorted
from mozbuild.frontend.data import GnProjectData
from mozbuild.util import expand_variables, mkdir
from mozbuild.util import mkdir
license_header = """# This Source Code Form is subject to the terms of the Mozilla Public
@ -325,12 +325,6 @@ def process_gn_config(
variables = (suffix_map[e] for e in extensions if e in suffix_map)
for var in variables:
for f in flags:
# We may be getting make variable references out of the
# gn data, and we don't want those in emitted data, so
# substitute them with their actual value.
f = expand_variables(f, config.substs).split()
if not f:
continue
# the result may be a string or a list.
if isinstance(f, six.string_types):
context_attrs.setdefault(var, []).append(f)