Skip to content

Commit

Permalink
missing libraries during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Sep 1, 2024
1 parent abc86fa commit 66be8ce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const boost_libs = [_][]const u8{
"outcome",
"bind",
"pfr",
"array",
"multi_array",
"integer",
"graph",
"optional",
"date_time",
Expand Down Expand Up @@ -92,7 +95,7 @@ pub fn boostLibraries(b: *std.Build, config: Config) *std.Build.Step.Compile {
if (config.header_only) {
// zig-pkg bypass (artifact need source file)
const empty = b.addWriteFile("empty.cc",
\\ #include <boost/config.hpp>
\\ #include <boost/config.hpp>
);
lib.step.dependOn(&empty.step);
lib.addCSourceFiles(.{
Expand Down
12 changes: 12 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,18 @@
.url = "git+https://github.com/boostorg/any#boost-1.86.0",
.hash = "122072700052d2d33b45d17400e68c3658a71721890611f0a0adb5e82fbaa2d5b187",
},
.integer = .{
.url = "git+https://github.com/boostorg/integer#boost-1.86.0",
.hash = "12200c5057e038ca6be7ca5c6847b6fbe72da5e495cc2fb04c9e1413329452a391d4",
},
.array = .{
.url = "git+https://github.com/boostorg/array#boost-1.86.0",
.hash = "12203c33dbf4c4d67afaa087cd9b5e3130da97c00c50cf56906a0266eeae2998641a",
},
.multi_array = .{
.url = "git+https://github.com/boostorg/multi_array#boost-1.86.0",
.hash = "1220871e233a05ee79c380dff922c83b20f4c738ab8e347c3c804d1c89430cb06ad6",
},
},
.paths = .{""},
}

0 comments on commit 66be8ce

Please sign in to comment.