mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 09:32:31 +00:00
build support list options
This commit is contained in:
parent
156e43b463
commit
688d02176c
@ -557,7 +557,15 @@ pub const Builder = struct {
|
||||
},
|
||||
UserValue.Scalar => |s| return s,
|
||||
},
|
||||
TypeId.List => panic("TODO list options to build script", .{}),
|
||||
TypeId.List => switch (entry.value.value) {
|
||||
UserValue.Flag => {
|
||||
warn("Expected -D{} to be a list, but received a boolean.\n", .{name});
|
||||
self.markInvalidUserInput();
|
||||
return null;
|
||||
},
|
||||
UserValue.Scalar => |s| return &[_][]const u8{s},
|
||||
UserValue.List => |lst| return lst.toSliceConst(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user