[libcxx-commits] [PATCH] D104980: [libcxx][NFC] replaces `<utility>` includes with specific headers
Christopher Di Bella via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 15 10:42:03 PDT 2021
cjdb added a comment.
There might be a potential workaround for this effort that lets us make progress, while also not throwing the world under the bus. `<Windows.h>` has a `WIN32_LEAN_AND_MEAN` macro that users can opt into if they want a slimmer `<Windows.h>`. We could have a similar macro that users opt into if they want slimmer libc++ headers for the time being. Once we've gotten tooling to a spot where we're happy users have automated remediation, we can then remove our use of this macro, and deprecate `_LIBCPP_LEAN_AND_MEAN`.
In summary: no one gets broken, anyone who wants slimmer headers gets them, and we eventually get to the "ideal" state. @ldionne, @ericwf, WDYT?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104980/new/
https://reviews.llvm.org/D104980
More information about the libcxx-commits
mailing list