authorgravatar for sage@sagehane.comSage Hane <sage@sagehane.com> 2021-05-02 02:22:14+09:00
committergravatar for sage@sagehane.comSage Hane <sage@sagehane.com> 2021-05-02 02:44:55+09:00
log6490e571365ee9f9a6afc1236adae414cb93ae1e
tree5d04d27f565c88903fea2b0d7ea13fcaf995bc03
parente9e91b4ed058f4c4e3f3380ec06cb914becd04a8
signaturelock-open Commit is signed but in an unrecognized format.

std.zig: handle -frandom-seed in NIX_CFLAGS_COMPILE


1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/zig/system.zig+3
...@@ -46,6 +46,9 @@ pub const NativePaths = struct {...@@ -46,6 +46,9 @@ pub const NativePaths = struct {
46 var it = mem.tokenize(nix_cflags_compile, " ");46 var it = mem.tokenize(nix_cflags_compile, " ");
47 while (true) {47 while (true) {
48 const word = it.next() orelse break;48 const word = it.next() orelse break;
49 if (mem.startsWith(u8, word, "-frandom-seed=")) {
50 continue;
51 }
49 if (mem.eql(u8, word, "-isystem")) {52 if (mem.eql(u8, word, "-isystem")) {
50 const include_path = it.next() orelse {53 const include_path = it.next() orelse {
51 try self.addWarning("Expected argument after -isystem in NIX_CFLAGS_COMPILE");54 try self.addWarning("Expected argument after -isystem in NIX_CFLAGS_COMPILE");