authorgravatar for bratishkaerik@landless-city.netEric Joldasov <bratishkaerik@landless-city.net> 2024-07-15 19:14:59+05:00
committergravatar for bratishkaerik@landless-city.netEric Joldasov <bratishkaerik@landless-city.net> 2024-12-18 01:47:51+05:00
logb83b161f4b2102e8f10ab84f1c99def352554dd2
treee7e77b3710109d0c969f8fd9ddf300250cd0feaf
parent3aa802090436a1882fc2093cf0ff8e906340bfcb
signaturelock-open Commit is signed but in an unrecognized format.

std.Build.Step.TranslateC: propagate target, optimize, link_libc to added module

Will be needed for the future commit with the new API where artifacts are created from the pre-existing module.

1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/Build/Step/TranslateC.zig+3
...@@ -81,6 +81,9 @@ pub fn addExecutable(translate_c: *TranslateC, options: AddExecutableOptions) *S...@@ -81,6 +81,9 @@ pub fn addExecutable(translate_c: *TranslateC, options: AddExecutableOptions) *S
81pub fn addModule(translate_c: *TranslateC, name: []const u8) *std.Build.Module {81pub fn addModule(translate_c: *TranslateC, name: []const u8) *std.Build.Module {
82 return translate_c.step.owner.addModule(name, .{82 return translate_c.step.owner.addModule(name, .{
83 .root_source_file = translate_c.getOutput(),83 .root_source_file = translate_c.getOutput(),
84 .target = translate_c.target,
85 .optimize = translate_c.optimize,
86 .link_libc = translate_c.link_libc,
84 });87 });
85}88}
8689