| ... | ... | @@ -29,7 +29,7 @@ pub const Options = struct { |
| 29 | 29 | pub fn create(owner: *std.Build, options: Options) *TranslateC { |
| 30 | 30 | const translate_c = owner.allocator.create(TranslateC) catch @panic("OOM"); |
| 31 | 31 | const source = options.root_source_file.dupe(owner); |
| 32 | | translate_c.* = TranslateC{ |
| 32 | translate_c.* = .{ |
| 33 | 33 | .step = Step.init(.{ |
| 34 | 34 | .id = base_id, |
| 35 | 35 | .name = "translate-c", |
| ... | ... | @@ -42,7 +42,7 @@ pub fn create(owner: *std.Build, options: Options) *TranslateC { |
| 42 | 42 | .out_basename = undefined, |
| 43 | 43 | .target = options.target, |
| 44 | 44 | .optimize = options.optimize, |
| 45 | | .output_file = std.Build.GeneratedFile{ .step = &translate_c.step }, |
| 45 | .output_file = .{ .step = &translate_c.step }, |
| 46 | 46 | .link_libc = options.link_libc, |
| 47 | 47 | .use_clang = options.use_clang, |
| 48 | 48 | }; |
| ... | ... | @@ -89,6 +89,9 @@ pub fn addModule(translate_c: *TranslateC, name: []const u8) *std.Build.Module { |
| 89 | 89 | pub fn createModule(translate_c: *TranslateC) *std.Build.Module { |
| 90 | 90 | return translate_c.step.owner.createModule(.{ |
| 91 | 91 | .root_source_file = translate_c.getOutput(), |
| 92 | .target = translate_c.target, |
| 93 | .optimize = translate_c.optimize, |
| 94 | .link_libc = translate_c.link_libc, |
| 92 | 95 | }); |
| 93 | 96 | } |
| 94 | 97 | |