aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorSage Hane <sage@sagehane.com>2021-05-02 02:22:14 +0900
committerSage Hane <sage@sagehane.com>2021-05-02 02:44:55 +0900
commit6490e571365ee9f9a6afc1236adae414cb93ae1e (patch)
tree5d04d27f565c88903fea2b0d7ea13fcaf995bc03 /lib/std
parente9e91b4ed058f4c4e3f3380ec06cb914becd04a8 (diff)
downloadzig-6490e571365ee9f9a6afc1236adae414cb93ae1e.tar.gz
zig-6490e571365ee9f9a6afc1236adae414cb93ae1e.zip
std.zig: handle -frandom-seed in NIX_CFLAGS_COMPILE
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/zig/system.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/zig/system.zig b/lib/std/zig/system.zig
index 42099c6efe..9dbe3762d0 100644
--- a/lib/std/zig/system.zig
+++ b/lib/std/zig/system.zig
@@ -46,6 +46,9 @@ pub const NativePaths = struct {
var it = mem.tokenize(nix_cflags_compile, " ");
while (true) {
const word = it.next() orelse break;
+ if (mem.startsWith(u8, word, "-frandom-seed=")) {
+ continue;
+ }
if (mem.eql(u8, word, "-isystem")) {
const include_path = it.next() orelse {
try self.addWarning("Expected argument after -isystem in NIX_CFLAGS_COMPILE");