Skip to content

ccache is not supported when using custom toolchain #180736

Description

@planetmarshall

Summary

When configuring an engine build using a custom toolchain, ccache is not used for the target build.

Expected behaviour

All C & C++ build steps should be cacheable

Actual behaviour

Only build steps for the build host are cached

Cacheable calls:   1423 / 1423 (100.0%)

Steps to reproduce

  1. Zero ccache stats

    $ ccache -z
    
  2. Configure an engine build using ccache and a custom toolchain

    $ gn --target-toolchain=<toolchain> --target-sysroot=<sysroot> --ccache --target-dir=target-ccache
    $ ninja -C engine/src/out/target-ccache
    
  3. Verify ccache stats

    ccache -s
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectengineflutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions