From e6ae8107c4298719b7585e0c8ba5c84d5013611a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 28 Aug 2024 19:06:16 -0700 Subject: [PATCH] build: include breakpad in static lib bundle for lib --- build.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.zig b/build.zig index 0e7c8b3fa..2c6a40623 100644 --- a/build.zig +++ b/build.zig @@ -1161,6 +1161,13 @@ fn addDeps( // Sentry step.linkLibrary(sentry_dep.artifact("sentry")); try static_libs.append(sentry_dep.artifact("sentry").getEmittedBin()); + + // We also need to include breakpad in the static libs. + const breakpad_dep = sentry_dep.builder.dependency("breakpad", .{ + .target = target, + .optimize = optimize, + }); + try static_libs.append(breakpad_dep.artifact("breakpad").getEmittedBin()); } // Dynamic link