Commit 8babc14cdf

Andrew Kelley <andrew@ziglang.org>
2023-12-28 01:51:59
std.Build.Module: default CSourceFile flags to empty list
1 parent 6509c49
Changed files (1)
lib
std
lib/std/Build/Module.zig
@@ -88,7 +88,7 @@ pub const CSourceFiles = struct {
 
 pub const CSourceFile = struct {
     file: LazyPath,
-    flags: []const []const u8,
+    flags: []const []const u8 = &.{},
 
     pub fn dupe(self: CSourceFile, b: *std.Build) CSourceFile {
         return .{