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 {...@@ -193,12 +193,6 @@ pub const PkgConfigPkg = struct {
193 desc: []const u8,193 desc: []const u8,
194};194};
195195
196pub const CStd = enum {
197 C89,
198 C99,
199 C11,
200};
201
202const UserInputOptionsMap = StringHashMap(UserInputOption);196const UserInputOptionsMap = StringHashMap(UserInputOption);
203const AvailableOptionsMap = StringHashMap(AvailableOption);197const AvailableOptionsMap = StringHashMap(AvailableOption);
204198
lib/std/Build/Module.zig-3
...@@ -19,7 +19,6 @@ include_dirs: std.ArrayListUnmanaged(IncludeDir),...@@ -19,7 +19,6 @@ include_dirs: std.ArrayListUnmanaged(IncludeDir),
19lib_paths: std.ArrayListUnmanaged(LazyPath),19lib_paths: std.ArrayListUnmanaged(LazyPath),
20rpaths: std.ArrayListUnmanaged(RPath),20rpaths: std.ArrayListUnmanaged(RPath),
21frameworks: std.StringArrayHashMapUnmanaged(LinkFrameworkOptions),21frameworks: std.StringArrayHashMapUnmanaged(LinkFrameworkOptions),
22c_std: std.Build.CStd,
23link_objects: std.ArrayListUnmanaged(LinkObject),22link_objects: std.ArrayListUnmanaged(LinkObject),
2423
25strip: ?bool,24strip: ?bool,
...@@ -164,7 +163,6 @@ pub const CreateOptions = struct {...@@ -164,7 +163,6 @@ pub const CreateOptions = struct {
164 strip: ?bool = null,163 strip: ?bool = null,
165 unwind_tables: ?bool = null,164 unwind_tables: ?bool = null,
166 dwarf_format: ?std.dwarf.Format = null,165 dwarf_format: ?std.dwarf.Format = null,
167 c_std: std.Build.CStd = .C99,
168 code_model: std.builtin.CodeModel = .default,166 code_model: std.builtin.CodeModel = .default,
169 stack_protector: ?bool = null,167 stack_protector: ?bool = null,
170 stack_check: ?bool = null,168 stack_check: ?bool = null,
...@@ -204,7 +202,6 @@ pub fn init(m: *Module, owner: *std.Build, options: CreateOptions, compile: ?*St...@@ -204,7 +202,6 @@ pub fn init(m: *Module, owner: *std.Build, options: CreateOptions, compile: ?*St
204 .lib_paths = .{},202 .lib_paths = .{},
205 .rpaths = .{},203 .rpaths = .{},
206 .frameworks = .{},204 .frameworks = .{},
207 .c_std = options.c_std,
208 .link_objects = .{},205 .link_objects = .{},
209 .strip = options.strip,206 .strip = options.strip,
210 .unwind_tables = options.unwind_tables,207 .unwind_tables = options.unwind_tables,