Updates needed for replacing hiredis in the valkey repo#182
Updates needed for replacing hiredis in the valkey repo#182bjosv merged 5 commits intovalkey-io:mainfrom
Conversation
Do they need to be in a separate sub directory? Can't they stay where they are and when it's built and linked by valkey, we just give precedence to valkey's own src dir? I could also accept specific variables like SDS_INCLUDE_DIR, DICT_INCLUDE_DIR, etc. to explicitly indicate these two libs. In your valkey branch, I don't see how you link libvalkey with valkey's sds and dict. When linking e.g. valkey-cli, we link to |
It should be possible, this was to follow the initial talks how it could be done. I'll try it so we can see how it looks.
When building valkey-cli I added
|
michael-grunder
left a comment
There was a problem hiding this comment.
Looks good to me. Smaller surface area change than I would've guessed.
- Add SDS_INCLUDE_DIR and DICT_INCLUDE_DIR to be able to replace the types sds and dict. - Search for sds.h and dict.h in the include path first. Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Add SDS_INCLUDE_DIR and DICT_INCLUDE_DIR to be able to replace the types sds and dict. Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Fixes issues on 32bit and macOS Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
|
Added support to replace dict/sds in cmake builds which also is used in valkey. |
|
Still draft? |
Seems ready now. The test-build to use the latest changes passed in valkey. |
|
OK, feel free to merge then. |
SDS_INCLUDE_DIRandDICT_INCLUDE_DIRto be able to replace sds and dict.sdsrange()API differenceThe
sdsrangein Valkey return void and performs no length check.Fixes issues on 32bit and macOS
Changes needed in valkey repo:
valkey-io/valkey@unstable...bjosv:valkey:refs/heads/use-libvalkey