| ... | @@ -46,9 +46,6 @@ pub const NativePaths = struct { | ... | @@ -46,9 +46,6 @@ 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 | } | | |
| 52 | if (mem.eql(u8, word, "-isystem")) { | 49 | if (mem.eql(u8, word, "-isystem")) { |
| 53 | const include_path = it.next() orelse { | 50 | const include_path = it.next() orelse { |
| 54 | try self.addWarning("Expected argument after -isystem in NIX_CFLAGS_COMPILE"); | 51 | try self.addWarning("Expected argument after -isystem in NIX_CFLAGS_COMPILE"); |
| ... | @@ -56,8 +53,10 @@ pub const NativePaths = struct { | ... | @@ -56,8 +53,10 @@ pub const NativePaths = struct { |
| 56 | }; | 53 | }; |
| 57 | try self.addIncludeDir(include_path); | 54 | try self.addIncludeDir(include_path); |
| 58 | } else { | 55 | } else { |
| | 56 | if (mem.startsWith(u8, word, "-frandom-seed=")) { |
| | 57 | continue; |
| | 58 | } |
| 59 | try self.addWarningFmt("Unrecognized C flag from NIX_CFLAGS_COMPILE: {s}", .{word}); | 59 | try self.addWarningFmt("Unrecognized C flag from NIX_CFLAGS_COMPILE: {s}", .{word}); |
| 60 | break; | | |
| 61 | } | 60 | } |
| 62 | } | 61 | } |
| 63 | } else |err| switch (err) { | 62 | } else |err| switch (err) { |