aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2021-08-06 02:01:47 -0700
committerRyan Liptak <squeek502@hotmail.com>2021-08-06 02:01:47 -0700
commitd31352ee85d633876877d87b813cd3611aa17d88 (patch)
treeb7e1de55626ecc009e31a0c18574d061e2641202 /src/main.zig
parent05fd20dc104b3654ce9c5d7a22a2bff66a940dba (diff)
downloadzig-d31352ee85d633876877d87b813cd3611aa17d88.tar.gz
zig-d31352ee85d633876877d87b813cd3611aa17d88.zip
Update all usages of mem.split/mem.tokenize for generic version
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 8c1964fc43..0987a46989 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1200,7 +1200,7 @@ fn buildOutputType(
},
.rdynamic => rdynamic = true,
.wl => {
- var split_it = mem.split(it.only_arg, ",");
+ var split_it = mem.split(u8, it.only_arg, ",");
while (split_it.next()) |linker_arg| {
// Handle nested-joined args like `-Wl,-rpath=foo`.
// Must be prefixed with 1 or 2 dashes.
@@ -3655,7 +3655,7 @@ pub const ClangArgIterator = struct {
defer allocator.free(resp_contents);
// TODO is there a specification for this file format? Let's find it and make this parsing more robust
// at the very least I'm guessing this needs to handle quotes and `#` comments.
- var it = mem.tokenize(resp_contents, " \t\r\n");
+ var it = mem.tokenize(u8, resp_contents, " \t\r\n");
var resp_arg_list = std.ArrayList([]const u8).init(allocator);
defer resp_arg_list.deinit();
{