Skip to content

Commit 0f48cff

Browse files
committed
boost-1.90.0 release - zig v0.16.0-dev
1 parent b04c323 commit 0f48cff

File tree

6 files changed

+212
-203
lines changed

6 files changed

+212
-203
lines changed

.github/workflows/zig-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v5
3131
- uses: mlugg/setup-zig@v2
32+
with:
33+
version: master
3234
- name: Build Summary ${{ matrix.targets }}
3335
run: zig build --build-file $PWD/tests/build.zig --summary all -freference-trace -Dtarget=${{ matrix.targets }}
3436

@@ -39,5 +41,7 @@ jobs:
3941
steps:
4042
- uses: actions/checkout@v5
4143
- uses: mlugg/setup-zig@v2
44+
with:
45+
version: master
4246
- name: Build Summary x86_64-windows-msvc
4347
run: zig build --build-file $PWD/tests/build.zig --summary all -freference-trace -Dtarget=native-windows-msvc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Replacing the [CMake](https://cmake.org/) and [B2](https://www.bfgroup.xyz/b2/)
1212

1313
### Requirements
1414

15-
- [zig](https://ziglang.org/download) v0.15.1 or master
15+
- [zig](https://ziglang.org/download) v0.16.0 or master
1616

1717
## How to use
1818

build.zig

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const boost_libs = [_][]const u8{
124124
"hash2",
125125
"tti",
126126
"bloom",
127+
"openmethod",
127128
};
128129

129130
pub fn build(b: *std.Build) !void {
@@ -263,10 +264,10 @@ pub fn boostLibraries(b: *std.Build, config: Config) *std.Build.Step.Compile {
263264
}
264265
}
265266
if (lib.rootModuleTarget().abi == .msvc)
266-
lib.linkLibC()
267+
lib.root_module.link_libc = true
267268
else {
268269
lib.root_module.addCMacro("_GNU_SOURCE", "");
269-
lib.linkLibCpp();
270+
lib.root_module.link_libcpp = true;
270271
}
271272
return lib;
272273
}
@@ -521,7 +522,7 @@ fn buildContext(b: *std.Build, obj: *std.Build.Step.Compile) void {
521522
.flags = cxxFlags,
522523
});
523524

524-
obj.addCSourceFile(.{
525+
obj.root_module.addCSourceFile(.{
525526
.file = switch (obj.rootModuleTarget().os.tag) {
526527
.windows => .{
527528
.cwd_relative = b.pathJoin(&.{ ctxPath, "windows/stack_traits.cpp" }),
@@ -534,7 +535,7 @@ fn buildContext(b: *std.Build, obj: *std.Build.Step.Compile) void {
534535
});
535536
if (obj.rootModuleTarget().os.tag == .windows) {
536537
obj.root_module.addCMacro("BOOST_USE_WINFIB", "");
537-
obj.want_lto = false;
538+
obj.lto = .thin;
538539
} else {
539540
obj.root_module.addCMacro("BOOST_USE_UCONTEXT", "");
540541
}
@@ -647,7 +648,7 @@ fn buildContext(b: *std.Build, obj: *std.Build.Step.Compile) void {
647648
obj.root_module.addAssemblyFile(.{ .cwd_relative = b.pathJoin(&.{ ctxPath, "asm/ontop_loongarch64_sysv_elf_gas.S" }) });
648649
},
649650
.powerpc => {
650-
obj.addCSourceFile(.{
651+
obj.root_module.addCSourceFile(.{
651652
.file = .{ .cwd_relative = b.pathJoin(&.{ ctxPath, "asm/tail_ontop_ppc32_sysv.cpp" }) },
652653
.flags = cxxFlags,
653654
});

0 commit comments

Comments
 (0)