authorgravatar for carl@astholm.seCarl Åstholm <carl@astholm.se> 2024-04-07 15:57:56+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-04-07 16:06:15-07:00
log09f1bbe11b17bd26641c7e36da34b1370ab025b2
tree965444f48c89d60ddcc62a7c1969b379918e2369
parent05126fc4c575b833e772239426f31af23eba0d20

std.Build: Remove unused `c_std` field

This field has not been referenced by compile steps since e76ce2c1d0d3988359267fd3030a81a52ec99f3f, all the way back in 2019. To specify the language standard, pass `-std=[value]` as a regular C flag instead.

2 files changed, 0 insertions(+), 9 deletions(-)

lib/std/Build.zig-6
......@@ -193,12 +193,6 @@ pub const PkgConfigPkg = struct {
193193 desc: []const u8,
194194};
195195
196pub const CStd = enum {
197 C89,
198 C99,
199 C11,
200};
201
202196const UserInputOptionsMap = StringHashMap(UserInputOption);
203197const AvailableOptionsMap = StringHashMap(AvailableOption);
204198
lib/std/Build/Module.zig-3
......@@ -19,7 +19,6 @@ include_dirs: std.ArrayListUnmanaged(IncludeDir),
1919lib_paths: std.ArrayListUnmanaged(LazyPath),
2020rpaths: std.ArrayListUnmanaged(RPath),
2121frameworks: std.StringArrayHashMapUnmanaged(LinkFrameworkOptions),
22c_std: std.Build.CStd,
2322link_objects: std.ArrayListUnmanaged(LinkObject),
2423
2524strip: ?bool,
......@@ -164,7 +163,6 @@ pub const CreateOptions = struct {
164163 strip: ?bool = null,
165164 unwind_tables: ?bool = null,
166165 dwarf_format: ?std.dwarf.Format = null,
167 c_std: std.Build.CStd = .C99,
168166 code_model: std.builtin.CodeModel = .default,
169167 stack_protector: ?bool = null,
170168 stack_check: ?bool = null,
......@@ -204,7 +202,6 @@ pub fn init(m: *Module, owner: *std.Build, options: CreateOptions, compile: ?*St
204202 .lib_paths = .{},
205203 .rpaths = .{},
206204 .frameworks = .{},
207 .c_std = options.c_std,
208205 .link_objects = .{},
209206 .strip = options.strip,
210207 .unwind_tables = options.unwind_tables,