clang on windows support

This commit is contained in:
wuggy 2026-09-10 08:32:59 -07:00
commit 1d44f05fba
22 changed files with 208 additions and 65 deletions

View file

@ -262,6 +262,13 @@ ifeq (WINNT,$(OS_TARGET))
NSS_XCFLAGS += $(filter -arch:%,$(CFLAGS))
endif
# freebl's x86 AES/GCM sources use AES-NI and PCLMUL intrinsics. The nested
# NSS build's per-object flags are not propagated through this wrapper when
# using clang-cl, so pass them explicitly.
ifeq (1,$(CLANG_CL))
NSS_XCFLAGS += -maes -mpclmul
endif
# Enable short header experiment. Firefox only.
NSS_XCFLAGS += -DNSS_ENABLE_TLS13_SHORT_HEADERS
@ -466,4 +473,3 @@ endif # MOZ_FOLD_LIBS
# Work around NSS build system race condition creating certdata.c in
# security/nss/lib/ckfw/builtins. See bug #836220.
libs-nss/lib$(if $(MOZ_FOLD_LIBS),/ckfw): $(call mkdir_deps,$(DEPTH)/security/nss/lib/ckfw/builtins)