mozilla / mozilla/sccache

sccache has problems with CMake in utility mode

Open
#2,672 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
7.7k
Forks
748
Avg merge
4d 7h
Merged PRs (30d)
21

Description

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>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by tracing sccache's command-line argument handling and reproduce the failure with CMake utility mode using the -E flag; done means utility-mode commands pass -E correctly and the reported libpng build completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, rust
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.