We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f347c2b commit 56825a2Copy full SHA for 56825a2
libs/build-nss-ios.sh
@@ -73,6 +73,16 @@ popd
73
# Build NSS
74
BUILD_DIR=$(mktemp -d)
75
rm -rf "${NSS_SRC_DIR}/nss/out"
76
+
77
+# NSS 3.121 gcm.gyp sets HAVE_PLATFORM_GCM for x86_64 iOS
78
+# simulator because 'target_arch=="x64" and OS!="win"' matches iOS.
79
+# `intel-gcm-wrap` is not built for iOS and no lib provides
80
+# platform_gcm_support for this target, causing a linker error.
81
+# Until Bug 2019090 is fixed upstream, this will patch `gcm.gyp` to exclude iOS.
82
+sed -i '' \
83
+ 's/target_arch=="x64" and OS!="win"/target_arch=="x64" and OS!="win" and OS!="ios"/g' \
84
+ "${NSS_SRC_DIR}/nss/lib/freebl/gcm.gyp"
85
86
gyp -f ninja "${NSS_SRC_DIR}/nss/nss.gyp" \
87
--depth "${NSS_SRC_DIR}/nss/" \
88
--generator-output=. \
0 commit comments