mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
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.
This commit is contained in:
parent
3aa8020904
commit
b83b161f4b
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue