toolchain: xpcg: fix output header not being truncated

This commit is contained in:
2026-03-15 09:45:31 +00:00
parent fea89d675e
commit 29acfcee69

View File

@@ -1098,7 +1098,7 @@ static int emit_interface(const struct interface_definition *iface)
b_result result = b_file_open( b_result result = b_file_open(
NULL, NULL,
B_RV_PATH(path), B_RV_PATH(path),
B_FILE_WRITE_ONLY | B_FILE_CREATE, B_FILE_WRITE_ONLY | B_FILE_CREATE | B_FILE_TRUNCATE,
&file); &file);
if (b_result_is_error(result)) { if (b_result_is_error(result)) {
b_throw(result); b_throw(result);