forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SuperSize] Extract build_config from metadata.
SuperSize metadata fields can be specific to containers (e.g., filename) or be common among them (e.g., GN args). This CL changes SuperSize to represent these separately: * Add BaseSizeInfo.build_config to represent common fields, which are: {git_revision, gn_args, linker_name, tool_prefix}. * Keep SizeInfo.metadata (with above fields moved). It will be moved once we introduce the Container class. The change affects internal data structure, but *not* .size files. * Add SizeInfo.metadata_legacy to support this: It fuses build_config with metadata, for the (current) one-container case. Other changes: * Replace describe.DescribeMetadata() with describe.DescribeDict(), to be used for build_config and metadata. * Fix lint warnings in diff_tests.py (assertEquals() -> assertEqual()). Bug: 1040645 Change-Id: I5db9e91a72abf3b7c4a0606adcd85db4afbddd29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2224637 Commit-Queue: Samuel Huang <huangs@chromium.org> Reviewed-by: Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#773798}
- Loading branch information
1 parent
989ad62
commit d73b785
Showing
9 changed files
with
200 additions
and
113 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
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
Oops, something went wrong.