编译前删除临时目录下的所有内容

This commit is contained in:
gb 2022-05-20 14:48:53 +08:00
parent 2693f5cf59
commit ca51479e37
1 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,11 @@ elif [ "$sys" == "kylin" ];then
fi
cd ../
if [ -f ./build/CMakeCache.txt ]; then
rm -rf ./build/*
else
mkdir build
fi
cd build
cmake ../code_device
make