build_nim.sh: update "last_built_commit"

This commit is contained in:
Ștefan Talpalaru 2021-05-22 04:44:06 +02:00
parent 12c3591fc1
commit 8758242198
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ nim_needs_rebuilding() {
# we built the requested commit in the past, so we simply reuse it
rm -f "${NIM_DIR}/bin/nim${EXE_SUFFIX}"
ln -s "nim_commit_${NIM_COMMIT_HASH}" "${NIM_DIR}/bin/nim${EXE_SUFFIX}"
echo ${NIM_COMMIT_HASH} > "${NIM_DIR}/bin/last_built_commit"
return $NO_REBUILD
else
return $REBUILD