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

Fix RocksDB ccache cache misses leading to pointless recompilations #12

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Logarithmus
Copy link
Contributor

@Logarithmus Logarithmus commented Oct 7, 2021

Previously cc recompiled rocksdb every time after the slightest changes to cargo command (e.g. running cargo doc after cargo check resulted in recompilation of rocksdb C++ code, even if C++ code didn't change at all. This was due to use of absolute paths containing e.g. roxide-librocksdb-sys-c294a8e66ff58e21, where c294a8e66ff58e21 part changed after the slightest change to cargo command.

  • Move dummy wrapper files: target/ -> roxide-librocksdb-sys/build/
  • Perform cosmetic changes to comments
  • Add a reminder to investigate if wrapper files hack is still needed

Closes #11

Previously `cc` recompiled `rocksdb` every time after the slightest
changes to `cargo` command (e.g. running cargo doc after `cargo check`
resulted in recompilation of `rocksdb` C++ code, even if C++ code
didn't change at all. This was due to use of absolute paths containing
e.g. `roxide-librocksdb-sys-c294a8e66ff58e21`, where `c294a8e66ff58e21`
part changed after the slightest change to `cargo` command.

- Move dummy wrapper files: `target/` -> `roxide-librocksdb-sys/build/`
- Perform cosmetic changes to comments
- Add a reminder to investigate if wrapper files hack is still needed

Closes #11
@Logarithmus Logarithmus self-assigned this Oct 7, 2021
@Logarithmus Logarithmus marked this pull request as draft October 7, 2021 23:13
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.

rocksdb is recompiled after the slightest change to cargo command
1 participant