Skip to content

Expose definable definitions to make in Makefile. #4492

@tansy

Description

@tansy

Expose definable definitions to make in Makefile.

There are some definitions* in Makefile that seem to be exposed to external definition but there is no way to pass them to Makefile.
Can you add some variable like `USER_CFLAGS' so user could pass additional options to Makefile and not have to manually change command line or edit the file.
And describe example in the Readme.

Or, if it's already possible describe it in Readme.

  • like ZSTDCLI_CLEVEL_DEFAULT, ZSTDCLI_NBTHREADS_DEFAULT, ZSTD_NOBENCH, etc.

Also a request to enclose DISPLAY_LEVEL_DEFAULT in `#ifdef ... #endif', so it too could be passed through makefile.

+#ifndef DISPLAY_LEVEL_DEFAULT
 #define DISPLAY_LEVEL_DEFAULT 2
+#endif

Here's a diff for convenience. Just add a new line at the end.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions