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

Set ANTLR4CPP_STATIC for everything that links against ANTLR #112

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

mortbopet
Copy link
Contributor

It isn't sufficient to rely on a single add_definitions when defining this. Other things which pulls in ANTLR headers must define this as well - if not, we end up with very hard to debug symbol visibility errors.

Set it as a public compile definition on the target to ensure the definition propagates.

It isn't sufficient to rely on a single [`add_definitions`](https://github.com/substrait-io/substrait-cpp/blob/cc8d08af7a7ff4b65d0081fc18f9bb243fe85824/src/substrait/textplan/parser/grammar/CMakeLists.txt#L8) when defining this. Other things which pulls in ANTLR headers _must_ define this as well - if not, we end up with very hard to debug symbol visibility errors.

Set it as a public compile definition on the target to ensure the definition propagates.
@EpsilonPrime EpsilonPrime merged commit bd9fb04 into substrait-io:main Sep 5, 2024
3 checks passed
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