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 zstd-sys in thin mode: Replace ZSTD_LIB_MINIFY with actual #defines #197

Merged
merged 1 commit into from
Jan 27, 2023
Merged

Fix zstd-sys in thin mode: Replace ZSTD_LIB_MINIFY with actual #defines #197

merged 1 commit into from
Jan 27, 2023

Conversation

NobodyXu
Copy link
Contributor

since ZSTD_LIB_MINIFY is only used in Makefile to enable other #defines.

Fixed bug introduced in #189 and in pointed out by @nickbabcock in #190 (comment)

Signed-off-by: Jiahao XU [email protected]

…fine`s

since `ZSTD_LIB_MINIFY` is only used in `Makefile` to enable other
`#define`s.

Signed-off-by: Jiahao XU <[email protected]>
Comment on lines +168 to +179
// We cannot use ZSTD_LIB_MINIFY since it is only
// used in Makefile to define other options.

config
.define("HUF_FORCE_DECOMPRESS_X1", Some("1"))
.define("HUF_FORCE_DECOMPRESS_X2", Some("0"))
.define("ZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT", Some("1"))
.define("ZSTD_FORCE_DECOMPRESS_SEQUENCES_LONG", Some("0"))
.define("ZSTD_NO_INLINE", Some("1"))
// removes the error messages that are
// otherwise returned by ZSTD_getErrorName
.define("ZSTD_STRIP_ERROR_STRINGS", Some("1"));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gyscos gyscos merged commit a855e61 into gyscos:main Jan 27, 2023
@NobodyXu NobodyXu deleted the fix/thin-mode branch January 27, 2023 02:25
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