diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2024-08-27 15:13:38 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2024-08-28 21:43:17 -0700 |
| commit | e4e9a196077ab7499669223910264456acf00a2e (patch) | |
| tree | b1d022390bafde8b002c07e9c3ccbac4ac73ddb6 /pkg | |
| parent | adbb394e445d70afd5b17e05bf54483ac666bfaf (diff) | |
pkg/sentry: fix Linux builds
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/sentry/build.zig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/sentry/build.zig b/pkg/sentry/build.zig index 694929c8c..f6243a57a 100644 --- a/pkg/sentry/build.zig +++ b/pkg/sentry/build.zig @@ -29,6 +29,17 @@ pub fn build(b: *std.Build) !void { .flags = flags.items, }); + // Linux-only + if (target.result.os.tag == .linux) { + lib.addCSourceFiles(.{ + .root = upstream.path(""), + .files = &.{ + "vendor/stb_sprintf.c", + }, + .flags = flags.items, + }); + } + // Symbolizer if (target.result.os.tag == .windows) { lib.addCSourceFiles(.{ |
