Browse Source

contrib: breakpad: Fix build with newest Xcode

The latest Xcode 14 / macOS 13 SDK declares quite a bunch of c calls as
deprecated for security reasons, like sprintf, which makes compilation
failing. Disable "-Werror" for Breakpad builds, to downgrade those errors to
warnings.

fixes #26859

(cherry picked from commit 7a0445383b)
cherry-pick-c5513cf9
David Fuhrmann 4 years ago
parent
commit
9568550010
  1. 1
      contrib/src/breakpad/rules.mak

1
contrib/src/breakpad/rules.mak

@ -16,6 +16,7 @@ $(TARBALLS)/breakpad-$(BREAKPAD_VERSION).tar.gz:
breakpad: breakpad-$(BREAKPAD_VERSION).tar.gz .sum-breakpad
$(UNPACK)
$(APPLY) $(SRC)/breakpad/0001-mac-client-Upgrade-Breakpad.xib-to-new-format.patch
sed -i.orig -e "s/GCC_TREAT_WARNINGS_AS_ERRORS = YES/GCC_TREAT_WARNINGS_AS_ERRORS = NO/" "$(UNPACK_DIR)/src/common/mac/Breakpad.xcconfig"
$(MOVE)
.breakpad: breakpad

Loading…
Cancel
Save