Skip to content

sccache has problems with CMake in utility mode #2672

@MarcelStankowskiAbbyy

Description

@MarcelStankowskiAbbyy

I'm using sccache in project that needs to compile libpng.
cmake for that project uses ustility mode, that is triggered by flag -E.

Unfortunatly sccache wont work correclly in that case, resulting in:

libpng/1.6.39: RUN: cmake --build "/opt/conan_global/p/b/libpn10c254bef1df0/b/build/Debug" -- -j16
[ 1%] Generating pnglibconf.c
[ 3%] Generating pngprefix.h
[ 4%] Generating scripts/symbols.out
[ 6%] Generating scripts/pnglibconf.c
error: unexpected argument '-E' found

tip: to pass '-E' as a value, use '-- -E'

Usage: sccache [OPTIONS] <--dist-auth|--debug-preprocessor-cache|--dist-status|--show-stats|--show-adv-stats|--start-server|--stop-server|--zero-stats|--package-toolchain |CMD>

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