--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACWgwAZX98PYeAr-OdJRC9Fn5XoqzvB8n_GRahKsLwgSELPY3g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACWgwAZdEZussGXY389_HF2H6pCFtnG6z%3DcassnKOA_PpLEiaA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAAHOzFB%3Dqxr7n3cDd0Mh15iCZafqw%2BinJg81yvH%3D5FN8%3D0b8YA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACwGi-4HVzAmFW25oqwxR%3D18smVtW0LMU24BUNsdCOkZZdAWuw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAFstQzNvEMZkst4ZTnZNWcNKMLdrh1_CDaUF8DBL3jFQmNmx%3Dg%40mail.gmail.com.
I'm afraid that isn't enough to get it to work. Is there someone here familiar with the absl BUILD situation?
I’m wondering if this ban is worth it, and if we should just go and use the std::in_place versions for our own stuff and the absl:: one for the absl:: stuff, and pay the price of having two in_places to gain simplicity of not having to have more absl around than we need.
PK
My current version of this is https://chromium-review.googlesource.com/c/chromium/src/+/3614476 and you can see the errors. Any thoughts as to what I'm missing?
PK
PA is directly using bind.h, callback.h, and ref_counted.h
[0/1/0] Regenerating ninja filesERROR Dependency cycle:
//base:base ->
//base/allocator/partition_allocator:partition_alloc ->
//base:baseSo base depends on PA, and I don't think in a "allow_circular_includes_from" way.
I mean, they kinda are working on it. https://crbug.com/1151236In the meanwhile, do we want to leave the status quo alone, and keep using both base::in_place and absl::in_place, or switch the base:: usage to std:: and clear out our copy?
Dana pointed out that I could add a deps to PA and make it work, and that seems to have unblocked things.Meanwhile, there are a lot of places in the code that include base/ headers in their own headers, and I'm chasing down deps and turning them into public_deps. We already have a big issue with undeclared public_deps causing build flakiness, and this seems like yet another way it's biting us.
That would be nice.Random example that I'm fixing right now:This .h file includes stuff from ios/chrome/browser/discover_feed/. The build file only has a deps, not a public deps, even though it's a header file that includes other headers.Is that something we can catch?
On Fri, Apr 29, 2022 at 2:19 PM Avi Drissman <a...@google.com> wrote:Dana pointed out that I could add a deps to PA and make it work, and that seems to have unblocked things.Meanwhile, there are a lot of places in the code that include base/ headers in their own headers, and I'm chasing down deps and turning them into public_deps. We already have a big issue with undeclared public_deps causing build flakiness, and this seems like yet another way it's biting us.I wonder: GN check verifies that you depend on what you include. It can't really do that transitively. But could it check that you public_depend on what you publicly include?
But hopefully I can get this posted soon.On Thu, Apr 28, 2022 at 3:53 PM Peter Kasting <pkas...@google.com> wrote:On Thu, Apr 28, 2022 at 12:49 PM Avi Drissman <a...@google.com> wrote:I mean, they kinda are working on it. https://crbug.com/1151236In the meanwhile, do we want to leave the status quo alone, and keep using both base::in_place and absl::in_place, or switch the base:: usage to std:: and clear out our copy?I'd just leave the status quo alone, sigh.PK
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAHtyhaSQWe%3D_c5XrRP6Hg3ruEfA3KR%3DvYpMO_zbVEyyVA1BgWA%40mail.gmail.com.
On Fri, Apr 29, 2022 at 9:05 PM <dan...@chromium.org> wrote:On Fri, Apr 29, 2022 at 2:19 PM Avi Drissman <a...@google.com> wrote:Dana pointed out that I could add a deps to PA and make it work, and that seems to have unblocked things.Meanwhile, there are a lot of places in the code that include base/ headers in their own headers, and I'm chasing down deps and turning them into public_deps. We already have a big issue with undeclared public_deps causing build flakiness, and this seems like yet another way it's biting us.I wonder: GN check verifies that you depend on what you include. It can't really do that transitively. But could it check that you public_depend on what you publicly include?This is a problem I've reported to gn (https://bugs.chromium.org/p/gn/issues/detail?id=287). I agree that `gn check` should check that includes from public headers should be present in public_deps and not deps. I've got the bug assigned to myself because I reported it, but I probably won't have time to make any change immediately, so if anyone wants to work on this, feel free to do so and steal the bug.