mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-26 17:56:33 -04:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user