消除一些编译警告

This commit is contained in:
2025-06-26 00:33:08 +08:00
parent 5411714133
commit 8928998479
4 changed files with 12 additions and 50 deletions

View File

@@ -128,7 +128,7 @@ def build_depend(src:list):
dst=os.path.join(BUILD_DIR,dst)
if(check_rebuild(dst,[i])):
cmd=f"{CC} -MM {i} -o {dst} {flags}"
print(cmd)
print(f"更新 {dst}")
ret=os.system(cmd)
if(ret):
exit()
@@ -162,7 +162,7 @@ def build_object(src:list):
# print(f"{i} 没有更新依赖关系")
pass
if(len(cmd)>0):
print(cmd)
print(f"编译 {dst}")
ret=os.system(cmd)
if(ret):
exit()
@@ -178,7 +178,7 @@ def build_target(src:list):
dst=os.path.join(BUILD_DIR,TARGET)
if(check_rebuild(dst,obj_list)):
cmd=f"{CC} {' '.join(obj_list)} -o {dst} {flags}"
print(cmd)
print(f"链接 {dst}")
ret=os.system(cmd)
if(ret):
exit()