diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-03 12:35:09 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-03 12:35:09 -0500 |
| commit | e3b275fa47e44d0a77e513d03a3b37b0f9ea0c0d (patch) | |
| tree | ab1a176abc3455865d62fa7c2e4683a53c2fb31e /std | |
| parent | d0d615d8197eeb196ac500009637296bd00c6583 (diff) | |
| download | zig-e3b275fa47e44d0a77e513d03a3b37b0f9ea0c0d.tar.gz zig-e3b275fa47e44d0a77e513d03a3b37b0f9ea0c0d.zip | |
fix build.zig not respecting --static
closes #2027
Diffstat (limited to 'std')
| -rw-r--r-- | std/build.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/build.zig b/std/build.zig index f2e53cce10..2316a87b31 100644 --- a/std/build.zig +++ b/std/build.zig @@ -1326,7 +1326,7 @@ pub const LibExeObjStep = struct { zig_args.append("--ver-patch") catch unreachable; zig_args.append(builder.fmt("{}", self.version.patch)) catch unreachable; } - if ((self.kind == Kind.Exe or self.kind == Kind.Test) and self.static) { + if (self.static) { zig_args.append("--static") catch unreachable; } |
