aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/Build.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/std/Build.zig b/lib/std/Build.zig
index 7ace959473..ad6eff9d58 100644
--- a/lib/std/Build.zig
+++ b/lib/std/Build.zig
@@ -438,6 +438,16 @@ fn userInputOptionsFromArgs(allocator: Allocator, args: anytype) UserInputOption
.used = false,
}) catch @panic("OOM");
},
+ []const []const u8 => {
+ var list = ArrayList([]const u8).initCapacity(allocator, v.len) catch @panic("OOM");
+ list.appendSliceAssumeCapacity(v);
+
+ user_input_options.put(field.name, .{
+ .name = field.name,
+ .value = .{ .list = list },
+ .used = false,
+ }) catch @panic("OOM");
+ },
else => switch (@typeInfo(T)) {
.Bool => {
user_input_options.put(field.name, .{