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
commit 22f51f2f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {