File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -154,9 +154,9 @@ pub fn build(b: *std.Build) !void {
154154
155155 // Define C flags to use
156156
157- var flags = std .ArrayList ([]const u8 ). init ( b . allocator ) ;
158- defer flags .deinit ();
159- try flags .append ("-std=c99" );
157+ var flags : std .ArrayList ([]const u8 ) = .{} ;
158+ defer flags .deinit (b . allocator );
159+ try flags .append (b . allocator , "-std=c99" );
160160
161161 inline for (std .meta .fields (EnableOptions )) | field | {
162162 const opt = b .option (bool , field .name , "Enable " ++ field .name ) orelse field .defaultValue ().? ;
@@ -166,7 +166,7 @@ pub fn build(b: *std.Build) !void {
166166 const name = std .ascii .upperString (& buf , field .name );
167167 const flag = try std .fmt .allocPrint (b .allocator , "-DSQLITE_ENABLE_{s}" , .{name });
168168
169- try flags .append (flag );
169+ try flags .append (b . allocator , flag );
170170 }
171171 }
172172
You can’t perform that action at this time.
0 commit comments