Skip to content

Failed to build with sccache wrapper #80

@orhun

Description

@orhun

Hello, I'm using sccache as rustc-wrapper:

# contents of .cargo/config

[build]
rustc-wrapper = "sccache"

This causes an error while using cargo-auditable:

error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `sccache /usr/bin/cargo-auditable rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit status: 2)
  --- stderr
  sccache: error: failed to execute compile
  sccache: caused by: Compiler not supported: "Unrecognized command: \"-E\"\n"

When I disable sccache, everything works as expected. Is there a way to work around this?

Additional Info

Rust version: rustc 1.66.0-nightly (6e95b6da8 2022-10-22)
cargo-auditable version: 0.5.2

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