not_clean 时不重复编译

This commit is contained in:
2025-01-09 14:31:08 +08:00
parent f4855a2881
commit 65a3e96af9
3 changed files with 16 additions and 11 deletions

View File

@@ -31,6 +31,8 @@ export dtest_only=1
set -o errexit
export CLEANUP_OPT
if [ "${CLEANUP_OPT}" == "1" ]; then
make -j -C .. clobber
make -j -C .. dtest_clean

View File

@@ -11,7 +11,8 @@ if __name__ == "__main__":
time_start=time.time()
if(len(sys.argv)>2):
cmd=f"{' '.join(sys.argv[1:])} > build_log.log"
os.system("python3 ../clear_output.py > /dev/null")
if not ('not_clean' in sys.argv[1:]):
os.system("python3 ../clear_output.py > /dev/null")
path="../tools/gen_img/customer"
if os.path.exists(path):
shutil.rmtree(path)