@@ -124,6 +124,7 @@ const boost_libs = [_][]const u8{
124124 "hash2" ,
125125 "tti" ,
126126 "bloom" ,
127+ "openmethod" ,
127128};
128129
129130pub 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