Skip to content

Symbolic link doesn't seem to work on Linux #993

@lackhoa

Description

@lackhoa

Using sccache-v0.2.15-x86_64-unknown-linux-musl, after symlinking:

$ ln -s sccache /usr/local/bin/gcc

I get this behavior

$ gcc
sccache: No command specified
sccache 0.2.15

USAGE:
    sccache [FLAGS] [OPTIONS] [cmd]...

FLAGS:
        --dist-auth       authenticate for distributed compilation
        --dist-status     show status of the distributed client
    -h, --help            Prints help information
    -s, --show-stats      show cache statistics
        --start-server    start background server
        --stop-server     stop background server
    -V, --version         Prints version information
    -z, --zero-stats      zero statistics counters

OPTIONS:
        --package-toolchain <executable> <out>    package toolchain for distributed compilation
        --stats-format <stats-format>
            set output format of statistics [default: text]  [possible values: text, json]


ARGS:
    <cmd>...    

Enabled features:
    S3:        true
    Redis:     true
    Memcached: true
    GCS:       true
    Azure:     true

sccache still thinks it is being called as sccache, and not as gcc.

The "wrap-around" behavior works fine before linking

$ sccache gcc
gcc: fatal error: no input files
compilation terminated.

But on my Mac, the same sccache v0.2.15 works fine with gcc being symlinked to sccache:

$ gcc
clang: error: no input files

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