mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Give better error message for --name with folder separator
This commit is contained in:
parent
1459231624
commit
f36aee93cc
@ -940,6 +940,8 @@ fn buildOutputType(
|
||||
};
|
||||
} else if (mem.eql(u8, arg, "--name")) {
|
||||
provided_name = args_iter.nextOrFatal();
|
||||
if (!mem.eql(u8, provided_name.?, fs.path.basename(provided_name.?)))
|
||||
fatal("invalid package name '{s}': cannot contain folder separators", .{provided_name.?});
|
||||
} else if (mem.eql(u8, arg, "-rpath")) {
|
||||
try rpath_list.append(args_iter.nextOrFatal());
|
||||
} else if (mem.eql(u8, arg, "--library-directory") or mem.eql(u8, arg, "-L")) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user