toolchain: xpcg: fix output header not being truncated
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user