-
Notifications
You must be signed in to change notification settings - Fork 5
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
Updates needed for replacing hiredis in the valkey repo #182
base: main
Are you sure you want to change the base?
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
|
- 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 <[email protected]>
Signed-off-by: Björn Svensson <[email protected]>
Fixes issues on 32bit and macOS Signed-off-by: Björn Svensson <[email protected]>
Signed-off-by: Björn Svensson <[email protected]>
Signed-off-by: Björn Svensson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Smaller surface area change than I would've guessed.
SDS_INCLUDE_DIR
andDICT_INCLUDE_DIR
to be able to replace sds and dict.sdsrange()
API differenceThe
sdsrange
in 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