Skip to content

ccache/ninja does not work when switching branches.  #49967

@zhxinyu

Description

@zhxinyu

Version

v21.0.0-pre

Platform

Darwin Siri-Pro.local 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64 x86_64

Subsystem

No response

What steps will reproduce the bug?

No response

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

No response

What do you see instead?

As suggested in the building.md, we should have near instantaneous build even when switching branches.

However, when I switched the branch in my local, I can see that it restarted the building process for make.

<username>@<hostname> node % git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
<username>@<hostname> node % make
+ exec ./configure --ninja
Node.js configure: Found Python 3.10.13...
INFO: configure completed successfully
ninja -C out/Release  
ninja: Entering directory `out/Release'
[3/3914] CC obj/deps/v8/third_party/zlib/v8_zlib.cpu_features.o

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions