mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 22:33:08 +00:00
Add warning if .xml file is used, since it's likely intended to be a Windows manifest file
Example: > zig build-exe test.zig test.xml warning: embedded manifest files must have the extension '.manifest' error: unrecognized file extension of parameter 'test.xml'
This commit is contained in:
parent
5f15acc463
commit
b51147889f
@ -1653,6 +1653,9 @@ fn buildOutputType(
|
|||||||
} else root_src_file = arg;
|
} else root_src_file = arg;
|
||||||
},
|
},
|
||||||
.def, .unknown => {
|
.def, .unknown => {
|
||||||
|
if (std.ascii.eqlIgnoreCase(".xml", std.fs.path.extension(arg))) {
|
||||||
|
std.log.warn("embedded manifest files must have the extension '.manifest'", .{});
|
||||||
|
}
|
||||||
fatal("unrecognized file extension of parameter '{s}'", .{arg});
|
fatal("unrecognized file extension of parameter '{s}'", .{arg});
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user