Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce size of cc::Build and size of generated targets #1257

Merged
merged 7 commits into from
Nov 2, 2024
Merged

Commits on Nov 2, 2024

  1. Reduce Build size: Group Arc together into BuildCache

    This would also reduce heap fragmentation.
    
    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    736587b View commit details
    Browse the repository at this point in the history
  2. Move OnceLock into utilities.rs

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    2a06e8d View commit details
    Browse the repository at this point in the history
  3. Fix clippy error in OnceLock::get_or_init

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    cd73f21 View commit details
    Browse the repository at this point in the history
  4. Impl Default for OnceLock<T>

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    76c71f9 View commit details
    Browse the repository at this point in the history
  5. Impl fmt::Debug for OnceLock<T> where T: Debug

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    81c2d9c View commit details
    Browse the repository at this point in the history
  6. Reduce size of TargetInfo by replacing Cow with slice

    Also add caching of parsing of the `TargetInfo` from cargo env.
    
    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    4676067 View commit details
    Browse the repository at this point in the history
  7. Fix clippy error in OnceLock::get_unchecked

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    3e97a33 View commit details
    Browse the repository at this point in the history