@@ -37,12 +37,12 @@ pub fn build(b: *std.Build) void {
3737 .PACKAGE = "libsframe" ,
3838 .PACKAGE_BUGREPORT = "" ,
3939 .PACKAGE_NAME = "libsframe" ,
40- .PACKAGE_STRING = b .fmt ("libsframe {}" , .{version }),
40+ .PACKAGE_STRING = b .fmt ("libsframe {f }" , .{version }),
4141 .PACKAGE_TARNAME = "libsframe" ,
4242 .PACKAGE_URL = "" ,
43- .PACKAGE_VERSION = b .fmt ("{}" , .{version }),
43+ .PACKAGE_VERSION = b .fmt ("{f }" , .{version }),
4444 .STDC_HEADERS = true ,
45- .VERSION = b .fmt ("{}" , .{version }),
45+ .VERSION = b .fmt ("{f }" , .{version }),
4646 });
4747
4848 const libsframe = b .addLibrary (.{
@@ -76,7 +76,7 @@ pub fn build(b: *std.Build) void {
7676 });
7777
7878 const libiberty_config_header = b .addConfigHeader (.{
79- .style = .{ .autoconf = upstream .path ("libiberty/config.in" ) },
79+ .style = .{ .autoconf_undef = upstream .path ("libiberty/config.in" ) },
8080 }, .{
8181 .AC_APPLE_UNIVERSAL_BUILD = null ,
8282 .CRAY_STACKSEG_END = null ,
@@ -273,7 +273,7 @@ pub fn build(b: *std.Build) void {
273273 }
274274
275275 const libbfd_config_header = b .addConfigHeader (.{
276- .style = .{ .autoconf = upstream .path ("bfd/config.in" ) },
276+ .style = .{ .autoconf_undef = upstream .path ("bfd/config.in" ) },
277277 }, .{
278278 .AC_APPLE_UNIVERSAL_BUILD = null ,
279279 .CORE_HEADER = @as (? []const u8 , switch (target .result .os .tag ) {
@@ -370,10 +370,10 @@ pub fn build(b: *std.Build) void {
370370 .PACKAGE = "bfd" ,
371371 .PACKAGE_BUGREPORT = "" ,
372372 .PACKAGE_NAME = "bfd" ,
373- .PACKAGE_STRING = b .fmt ("bfd {}" , .{version }),
373+ .PACKAGE_STRING = b .fmt ("bfd {f }" , .{version }),
374374 .PACKAGE_TARNAME = "bfd" ,
375375 .PACKAGE_URL = "" ,
376- .PACKAGE_VERSION = b .fmt ("{}" , .{version }),
376+ .PACKAGE_VERSION = b .fmt ("{f }" , .{version }),
377377 .SIZEOF_INT = target .result .cTypeByteSize (.int ),
378378 .SIZEOF_LONG = target .result .cTypeByteSize (.long ),
379379 .SIZEOF_LONG_LONG = target .result .cTypeByteSize (.longlong ),
@@ -392,7 +392,7 @@ pub fn build(b: *std.Build) void {
392392 ._POSIX_PTHREAD_SEMANTICS = true ,
393393 ._TANDEM_SOURCE = true ,
394394 .__EXTENSIONS__ = true ,
395- .VERSION = b .fmt ("{}" , .{version }),
395+ .VERSION = b .fmt ("{f }" , .{version }),
396396 .WORDS_BIGENDIAN = if (target .result .cpu .arch .endian () == .big ) @as (i64 , 1 ) else null ,
397397 ._FILE_OFFSET_BITS = null ,
398398 ._LARGE_FILES = null ,
@@ -745,8 +745,10 @@ pub fn build(b: *std.Build) void {
745745
746746 const find_replace_exe = b .addExecutable (.{
747747 .name = "find-replace" ,
748- .root_source_file = b .path ("find_replace.zig" ),
749- .target = b .graph .host ,
748+ .root_module = b .createModule (.{
749+ .root_source_file = b .path ("find_replace.zig" ),
750+ .target = b .graph .host ,
751+ }),
750752 });
751753
752754 const generated_header_files : []const std.Build.LazyPath = &.{
@@ -826,7 +828,7 @@ pub fn build(b: *std.Build) void {
826828 }
827829
828830 const opcodes_config_header = b .addConfigHeader (.{
829- .style = .{ .autoconf = upstream .path ("opcodes/config.in" ) },
831+ .style = .{ .autoconf_undef = upstream .path ("opcodes/config.in" ) },
830832 }, .{
831833 .ENABLE_CHECKING = true ,
832834 .ENABLE_NLS = if (target .result .os .tag == .linux or target .result .os .tag == .windows ) true else null ,
@@ -852,18 +854,18 @@ pub fn build(b: *std.Build) void {
852854 .PACKAGE = "opcodes" ,
853855 .PACKAGE_BUGREPORT = "" ,
854856 .PACKAGE_NAME = "opcodes" ,
855- .PACKAGE_STRING = b .fmt ("opcodes {}" , .{version }),
857+ .PACKAGE_STRING = b .fmt ("opcodes {f }" , .{version }),
856858 .PACKAGE_TARNAME = "opcodes" ,
857859 .PACKAGE_URL = "" ,
858- .PACKAGE_VERSION = b .fmt ("{}" , .{version }),
860+ .PACKAGE_VERSION = b .fmt ("{f }" , .{version }),
859861 .SIZEOF_VOID_P = target .result .ptrBitWidth () / 8 ,
860862 .STDC_HEADERS = true ,
861863 ._ALL_SOURCE = true ,
862864 ._GNU_SOURCE = true ,
863865 ._POSIX_PTHREAD_SEMANTICS = true ,
864866 ._TANDEM_SOURCE = true ,
865867 .__EXTENSIONS__ = true ,
866- .VERSION = b .fmt ("{}" , .{version }),
868+ .VERSION = b .fmt ("{f }" , .{version }),
867869 ._MINIX = null ,
868870 ._POSIX_1_SOURCE = null ,
869871 ._POSIX_SOURCE = null ,
0 commit comments