- Notifications
You must be signed in to change notification settings - Fork239
Stop leaking internal headers to other libraries.#729
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This is important for e.g. glib/gio, which alsohas an internal config.h, and fails to compile, asit often picks up the pcre2 config.h first.
feuerste commentedMar 14, 2025
@NWilson Can you please have a look? Thanks a lot! |
NWilson commentedMar 14, 2025
Interesting. I see the issue. I don't know Bazel at all, but I can see that it's documented for the From a little bit of Googling, I'm concerned about:
|
feuerste commentedMar 17, 2025
Thanks for looking into this!
I've seen it in quite a few bazel projects and MSVC according tohttps://learn.microsoft.com/en-us/cpp/build/reference/compiler-option allows both
I changed it to use an impl library which is solely for internal use. Please take another look! |
NWilson commentedMar 17, 2025
I have pushed a commit to your branch, which is my attempt to make the diff a bit smaller, by only pulling out the headers into their own internal dependency. I am able to run the I don't know enough about Bazel to confirm whether or not your original issue is fixed however (the public export of config.h to downstream clients). |
NWilson commentedMar 17, 2025
Also@feuerste, if you're a Bazel user, do you know if it's OK now to remove the WORKSPACE.bazel file? I think this is some old compatibility thing for Bazel <6.3 (according to the docs), and those versions are now out of support I believe. |
feuerste commentedMar 17, 2025
I just tested it locally with all my dependencies, and it still works, so from my side we can merge it. |
feuerste commentedMar 17, 2025
I'm pretty sure we can remove that file, probably in a separate PR? |
NWilson commentedMar 17, 2025
Thank you very much! I'll merge. I'll open a separate PR for removing WORKSPACE.bazel. |
3a4310e intoPCRE2Project:masterUh oh!
There was an error while loading.Please reload this page.
This is important for e.g. glib/gio, which also
has an internal config.h, and fails to compile, as it often picks up the pcre2 config.h first.