pub const CSourceFile = struct file: LazyPathflags: []const []const u8 = &.{}language: ?CSourceLanguage = nullBy default, determines language of each file individually based on its file extension
pub fn dupe(file: CSourceFile, graph: *const std.Build.Graph) CSourceFile117
118
119
120
121
122
123
124
125
126
127
128
129
130pub const CSourceFile = struct {
file: LazyPath,
flags: []const []const u8 = &.{},
/// By default, determines language of each file individually based on its file extension
language: ?CSourceLanguage = null,
pub fn dupe(file: CSourceFile, graph: *const std.Build.Graph) CSourceFile {
return .{
.file = file.file.dupe(graph),
.flags = graph.dupeStrings(file.flags),
.language = file.language,
};
}
}