Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If vendor RocksDb files have changed the trigger a clean rebuild. #49

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

bhartnett
Copy link
Contributor

No description provided.

else
${REPO_DIR}/scripts/clean_build_artifacts.sh
echo "Building RocksDb static libraries."
fi
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arnetheduck This should fix the problem you encountered. If we have already built RocksDb then it won't be rebuilt unless you switch the code then it will check if a rebuild is needed, and will clean the build artifacts just before completing the full rebuild.

By the way I couldn't find a good way to clean up the build artifacts as you suggested without triggering RocksDb to rebuild and we don't want to rebuild RocksDb every time, that would be too slow. This is because the make file targets are all linked together and if any files are changed or deleted then it will trigger a rebuild up the path of what was changed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright! nice bonus with the echo, without it looks like the build has frozen..

@bhartnett bhartnett merged commit 93c6df0 into master Jun 14, 2024
9 checks passed
@bhartnett bhartnett deleted the clean-build-if-rocksdb-version-changed branch June 14, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants