zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit b83b161f4b2102e8f10ab84f1c99def352554dd2 (tree)
parent 3aa802090436a1882fc2093cf0ff8e906340bfcb
Author: Eric Joldasov <bratishkaerik@landless-city.net>
Date:   Mon, 15 Jul 2024 19:14:59 +0500

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.

Diffstat:
Mlib/std/Build/Step/TranslateC.zig | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/std/Build/Step/TranslateC.zig b/lib/std/Build/Step/TranslateC.zig @@ -81,6 +81,9 @@ pub fn addExecutable(translate_c: *TranslateC, options: AddExecutableOptions) *S pub fn addModule(translate_c: *TranslateC, name: []const u8) *std.Build.Module { return translate_c.step.owner.addModule(name, .{ .root_source_file = translate_c.getOutput(), + .target = translate_c.target, + .optimize = translate_c.optimize, + .link_libc = translate_c.link_libc, }); }