Skip to content

Commit 09f1bbe

Browse files
castholmandrewrk
authored andcommitted
std.Build: Remove unused c_std field
This field has not been referenced by compile steps since e76ce2c, all the way back in 2019. To specify the language standard, pass `-std=[value]` as a regular C flag instead.
1 parent 05126fc commit 09f1bbe

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

lib/std/Build.zig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,6 @@ pub const PkgConfigPkg = struct {
193193
desc: []const u8,
194194
};
195195

196-
pub const CStd = enum {
197-
C89,
198-
C99,
199-
C11,
200-
};
201-
202196
const UserInputOptionsMap = StringHashMap(UserInputOption);
203197
const AvailableOptionsMap = StringHashMap(AvailableOption);
204198

lib/std/Build/Module.zig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ include_dirs: std.ArrayListUnmanaged(IncludeDir),
1919
lib_paths: std.ArrayListUnmanaged(LazyPath),
2020
rpaths: std.ArrayListUnmanaged(RPath),
2121
frameworks: std.StringArrayHashMapUnmanaged(LinkFrameworkOptions),
22-
c_std: std.Build.CStd,
2322
link_objects: std.ArrayListUnmanaged(LinkObject),
2423

2524
strip: ?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,

0 commit comments

Comments
 (0)