Merge pull request #8667 from sagehane/nixos

std.zig: handle -frandom-seed in NIX_CFLAGS_COMPILE
This commit is contained in:
Andrew Kelley
2021-05-19 03:28:12 -04:00
committed by GitHub

View File

@@ -54,8 +54,10 @@ pub const NativePaths = struct {
};
try self.addIncludeDir(include_path);
} else {
if (mem.startsWith(u8, word, "-frandom-seed=")) {
continue;
}
try self.addWarningFmt("Unrecognized C flag from NIX_CFLAGS_COMPILE: {s}", .{word});
break;
}
}
} else |err| switch (err) {