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

fail: add a runtime codegen check #38

Merged
merged 1 commit into from
Jun 13, 2019
Merged

Conversation

lucab
Copy link
Member

@lucab lucab commented Jun 13, 2019

This adds an helper function which allows consumers to check (at runtime)
whether the library was compiled with the (buildtime) failpoints feature,
which enables code generation for failpoints.

This adds an helper function which allows consumers to check (at runtime)
whether the library was compiled with the (buildtime) `failpoints` feature,
which enables code generation for failpoints.
@lucab
Copy link
Member Author

lucab commented Jun 13, 2019

/cc @BusyJay @overvenus @brson for review.

This enables all consumers to introspect library buildtime configuration in a uniform way (i.e. regardless of feature renaming in case of intermediate consumers).
It is mostly sugar for consumers, so feel free to reject if you don't like it.

@brson
Copy link
Collaborator

brson commented Jun 13, 2019

Thanks @lucab

@brson brson merged commit 0853632 into tikv:master Jun 13, 2019
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.

None yet

2 participants