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>
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>