Bug 1773223 - Filter-out _FORTIFY_SOURCE in GN processing. r=firefox-build-system-reviewers,andi

This is redundant with the build system setting it in
toolchain.configure.

Differential Revision: https://phabricator.services.mozilla.com/D149471
This commit is contained in:
Mike Hommey
2022-06-20 20:58:38 +00:00
parent c98284493c
commit 96eff086ac
364 changed files with 3 additions and 5601 deletions

View File

@@ -206,7 +206,9 @@ def filter_gn_config(path, gn_result, sandbox_vars, input_vars, gn_target):
spec[spec_attr] = [
d
for d in spec[spec_attr]
if "CR_XCODE_VERSION" not in d and "CR_SYSROOT_HASH" not in d
if "CR_XCODE_VERSION" not in d
and "CR_SYSROOT_HASH" not in d
and "_FORTIFY_SOURCE" not in d
]
if spec_attr == "include_dirs":
spec[spec_attr] = [d for d in spec[spec_attr] if gen_path != Path(d)]