mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 23:20:30 -04:00
Changelog: - https://github.com/electron/electron/releases/tag/v22.0.2 - https://github.com/electron/electron/releases/tag/v22.0.3 - https://github.com/electron/electron/releases/tag/v22.1.0 PR: 269194 Reported by: Yonas Yanfa <yonas.yanfa@gmail.com> Approved by: mikael (maintainer)
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
--- third_party/zlib/BUILD.gn.orig 2023-01-30 07:58:59 UTC
|
|
+++ third_party/zlib/BUILD.gn
|
|
@@ -117,7 +117,7 @@ if (use_arm_neon_optimizations) {
|
|
# Disabled for iPhone, as described in DDI0487C_a_armv8_arm:
|
|
# "All implementations of the ARMv8.1 architecture are required to
|
|
# implement the CRC32* instructions. These are optional in ARMv8.0."
|
|
- if (!is_ios) {
|
|
+ if (!is_ios && !is_bsd) {
|
|
defines = [ "CRC32_ARMV8_CRC32" ]
|
|
if (is_android) {
|
|
defines += [ "ARMV8_OS_ANDROID" ]
|
|
@@ -138,7 +138,7 @@ if (use_arm_neon_optimizations) {
|
|
source_set("zlib_arm_crc32") {
|
|
visibility = [ ":*" ]
|
|
|
|
- if (!is_ios) {
|
|
+ if (!is_ios && !is_bsd) {
|
|
include_dirs = [ "." ]
|
|
|
|
if (!is_win && !is_clang) {
|
|
@@ -405,7 +405,7 @@ static_library("minizip") {
|
|
]
|
|
}
|
|
|
|
- if (is_apple || is_android || is_nacl) {
|
|
+ if (is_apple || is_android || is_nacl || is_bsd) {
|
|
# Mac, Android and the BSDs don't have fopen64, ftello64, or fseeko64. We
|
|
# use fopen, ftell, and fseek instead on these systems.
|
|
defines = [ "USE_FILE32API" ]
|