aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-19 03:28:12 -0400
committerGitHub <noreply@github.com>2021-05-19 03:28:12 -0400
commit22f51f2f7dfa7ca985648c414b25d5842d0c2732 (patch)
tree0d387dfccbc408fbf7c6d502c669db78ce05041a /lib/std
parent1d6c804b29fed146aafda0f56cae7a4853b6abf9 (diff)
parent975cb9e9a9d4386b73c141459331a3f08904a46e (diff)
downloadzig-22f51f2f7dfa7ca985648c414b25d5842d0c2732.tar.gz
zig-22f51f2f7dfa7ca985648c414b25d5842d0c2732.zip
Merge pull request #8667 from sagehane/nixos
std.zig: handle -frandom-seed in NIX_CFLAGS_COMPILE
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/zig/system.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/zig/system.zig b/lib/std/zig/system.zig
index 4630fd0db4..bc099b8ec6 100644
--- a/lib/std/zig/system.zig
+++ b/lib/std/zig/system.zig
@@ -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) {