std.Build.Step.ConfigHeader: skip trailing whitespace in autoconf header

This commit is contained in:
Techatrix
2025-02-19 09:04:08 +01:00
parent 7e548af8b1
commit 344db9e26b
4 changed files with 16 additions and 1 deletions

View File

@@ -286,7 +286,7 @@ fn render_autoconf(
try output.appendSlice("\n");
continue;
}
const name = it.rest();
const name = it.next().?;
const index = values.getIndex(name) orelse {
try step.addError("{s}:{d}: error: unspecified config header value: '{s}'", .{
src_path, line_index + 1, name,