mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
Adds a missing call to addLazyPathDependenciesOnly in std.Build.Module.addCSourceFiles. Also fixes an issue in std.Build.Step.WriteFile where it wasn't updating all the GeneratedFile instances for every directory. To fix the second issue, I removed all the GeneratedFile instances and now all files/directories reference the steps main GeneratedFile via sub paths.
9 lines
153 B
Zig
9 lines
153 B
Zig
const std = @import("std");
|
|
const c = @cImport({
|
|
@cInclude("foo.h");
|
|
});
|
|
comptime {
|
|
std.debug.assert(c.foo_value == 42);
|
|
}
|
|
pub fn main() void {}
|