-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark callback and friends as trivial ABI everywhere except Windows.
A local official Linux build goes from 209.06 MB to 208.09 MB. For whatever reason, clang-cl is not happy with the use of TRIVIAL_ABI in these contexts, so for now, this is TRIVIAL_ABI everywhere except Windows. To prevent the workaround macros from leaking, the definitions are duplicated in both callback.h and callback_internal.h, since there's a few files that include callback_internal.h directly. In addition, build/build_config.h is already transitively included, so removing the hack later should be trivial. Bug: 1383397 Change-Id: I755d0b2c4b2e6eec89026ee16a88c572ab7794a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4021547 Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/main@{#1070593}
- Loading branch information
1 parent
11057b0
commit b7ece23
Showing
2 changed files
with
66 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters