编译时打印存储使用信息
This commit is contained in:
2
make.py
2
make.py
@@ -173,7 +173,6 @@ def build_depend(src:list):
|
||||
CmdQueue.put(cmd_item_t(cmd,f"更新 {dst}"))
|
||||
dst_list.append(dst)
|
||||
run_cmd_queue(CmdQueue)
|
||||
# check_exists(dst_list)
|
||||
|
||||
|
||||
# 生成中间文件
|
||||
@@ -193,7 +192,6 @@ def build_object(src:list):
|
||||
CmdQueue.put(cmd_item_t(cmd,f"编译 {dst}"))
|
||||
dst_list.append(dst)
|
||||
run_cmd_queue(CmdQueue)
|
||||
# check_exists(dst_list)
|
||||
|
||||
|
||||
# 生成可执行文件
|
||||
|
@@ -186,7 +186,6 @@ def build_depend(src:list):
|
||||
CmdQueue.put(cmd_item_t(cmd,f"更新 {dst}"))
|
||||
dst_list.append(dst)
|
||||
run_cmd_queue(CmdQueue)
|
||||
# check_exists(dst_list)
|
||||
|
||||
# 生成中间文件
|
||||
def build_object(src:list):
|
||||
@@ -210,7 +209,6 @@ def build_object(src:list):
|
||||
CmdQueue.put(cmd_item_t(cmd,f"编译 {dst}"))
|
||||
dst_list.append(dst)
|
||||
run_cmd_queue(CmdQueue)
|
||||
# check_exists(dst_list)
|
||||
|
||||
|
||||
# 生成可执行文件
|
||||
@@ -222,7 +220,9 @@ def build_target(src:list):
|
||||
obj_list.append('.'.join([name,'o']))
|
||||
dst=os.path.join(OUTPUT,TARGET)+".elf"
|
||||
if(check_rebuild(dst,obj_list)):
|
||||
cmd=f"{CC} {' '.join(obj_list)} -o {dst} {flags} -T{LD_FILE} -Wall -Wextra -nostartfiles -Wl,-Map,\"{OUTPUT}/{TARGET}.map\""
|
||||
cmd=f"{CC} {' '.join(obj_list)} -o {dst} {flags} -T{LD_FILE} \
|
||||
-Wall -Wextra -nostartfiles -Wl,-Map,\"{OUTPUT}/{TARGET}.map\" \
|
||||
-Wl,-print-memory-usage"
|
||||
print(f"链接 {dst}")
|
||||
ret=os.system(cmd)
|
||||
if(ret):
|
||||
|
Reference in New Issue
Block a user