Bug 1747773 - Build NSS with clang's integrated assembler on x86_64. r=firefox-build-system-reviewers,mhentges

Differential Revision: https://phabricator.services.mozilla.com/D134742
This commit is contained in:
Mike Hommey 2022-01-12 21:48:20 +00:00
parent 3a214de2f6
commit 0160eb2a59

View File

@ -96,6 +96,14 @@ gyp_vars["use_system_sqlite"] = 1
gyp_vars["sqlite_libs"] = "sqlite"
gyp_vars["enable_draft_hpke"] = 1
# Clang can build NSS with its integrated assembler since version 9.
if (
CONFIG["CPU_ARCH"] == "x86_64"
and CONFIG["CC_TYPE"] == "clang"
and int(CONFIG["CC_VERSION"].split(".")[0]) >= 9
):
gyp_vars["force_integrated_as"] = 1
if CONFIG["MOZ_SYSTEM_NSPR"]:
gyp_vars["nspr_include_dir"] = "%" + CONFIG["NSPR_INCLUDE_DIR"]