std.Build: dupe provided paths for Step.Fmt.create()

This commit is contained in:
Luis Cáceres 2024-03-23 21:07:54 +00:00 committed by Veikka Tuominen
parent 405502286d
commit 29e41c6850

View File

@ -29,8 +29,8 @@ pub fn create(owner: *std.Build, options: Options) *Fmt {
.owner = owner, .owner = owner,
.makeFn = make, .makeFn = make,
}), }),
.paths = options.paths, .paths = owner.dupeStrings(options.paths),
.exclude_paths = options.exclude_paths, .exclude_paths = owner.dupeStrings(options.exclude_paths),
.check = options.check, .check = options.check,
}; };
return self; return self;