fix syscap_define_custom.h incremental generation

https://gitcode.com/openharmony/developtools_syscap_codec/issues/342?ref=&did=3643142#tid-3643142
Signed-off-by: hosted <chenyadong18@huawei.com>
This commit is contained in:
hosted
2025-12-18 20:14:51 +08:00
parent 8401c4643a
commit a749d7891d
+1 -1
View File
@@ -152,6 +152,6 @@ if __name__ == '__main__':
output_file = args.output
full = assemble_header_file(base_file, extern_file)
with os.fdopen(os.open(output_file, os.O_WRONLY | os.O_CREAT, mode=0o640), 'w') as out:
with os.fdopen(os.open(output_file, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, mode=0o640), 'w') as out:
out.writelines(full)