Skip to content

Fix RocksDB ccache cache misses leading to pointless recompilations#12

Draft
Logarithmus wants to merge 1 commit intomasterfrom
bug/11-fix-rocksdb-ccache
Draft

Fix RocksDB ccache cache misses leading to pointless recompilations#12
Logarithmus wants to merge 1 commit intomasterfrom
bug/11-fix-rocksdb-ccache

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