Skip to content

Commit b511478

Browse files
committed
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'
1 parent 5f15acc commit b511478

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.zig

+3
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,9 @@ fn buildOutputType(
16531653
} else root_src_file = arg;
16541654
},
16551655
.def, .unknown => {
1656+
if (std.ascii.eqlIgnoreCase(".xml", std.fs.path.extension(arg))) {
1657+
std.log.warn("embedded manifest files must have the extension '.manifest'", .{});
1658+
}
16561659
fatal("unrecognized file extension of parameter '{s}'", .{arg});
16571660
},
16581661
}

0 commit comments

Comments
 (0)