Skip to content

Support caching MSVC compiles with -showIncludes #47

@luser

Description

@luser

We currently treat -showIncludes as a non-cacheable MSVC option. I ported this directly from the Python implementation. Unfortunately a lot of build tools use this to produce dependency info, and it may not be possible to work around that. @alexcrichton ran into this trying to get sccache working for the LLVM build in Rust.

I suspect the issue here is that the output from -showIncludes is generated when we run the preprocessor, but we cache the output of running the compiler on the already-preprocessed output. It might be a little weird, but I think we could save all the extra output lines and just prepend them to the compiler output if the original command included -showIncludes.

@glandium, is there anything I'm missing there?

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