--- id: sccache version: "0.16.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # sccache — Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage. License: permissive · Maintenance: active · Downloads: 975.3K/mo ## What it is and what it does sccache is a compiler caching tool that intercepts compilation commands and stores results to avoid redundant recompilation. It works as a compiler wrapper—you prefix your normal compiler invocations with sccache, and it transparently caches object files and other build artifacts. It supports a wide range of compilers including gcc, clang, MSVC, rustc, NVIDIA CUDA (nvcc), AMD ROCm HIP, and others. The package can store cached results on local disk or in cloud storage backends like S3, Redis, Memcached, Google Cloud Storage, Azure, and others. It includes a client-server architecture where the server maintains in-memory state for efficiency, and it can optionally provide distributed compilation similar to icecream, automatically packaging toolchains for remote build servers. The tool is particularly useful in CI/CD pipelines and large projects where compilation time is a bottleneck. Use it for: - Accelerate CI/CD pipelines by caching C/C++ and Rust compilation results across builds and team members. - Speed up local development by avoiding recompilation of unchanged source files across multiple builds. - Distribute compilation workload across multiple machines with automatic toolchain packaging for remote builders. - Cache CUDA and HIP compiler output to reduce GPU build times in heterogeneous computing projects. - Integrate with CMake builds using CMAKE_C_COMPILER_LAUNCHER and CMAKE_CXX_COMPILER_LAUNCHER for transparent caching. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. sccache is a compiler caching wrapper that stores compilation results locally or in cloud storage to avoid recompilation, supporting C/C++, Rust, CUDA, and other compilers with optional distributed compilation. Yes, if you have compilation-heavy workflows (C/C++, Rust, CUDA) and want to reduce build times. The package is actively maintained, has no runtime dependencies, and offers both local and cloud storage options. Medium install friction is acceptable given the potential build-time savings. No known security vulnerabilities. ## Install pip install sccache uv add sccache poetry add sccache ## Installing sccache Before you install: Medium install friction due to platform-specific binary wheels (Windows, macOS, Linux architectures). Package is actively maintained with recent releases and no runtime dependencies, making it straightforward to deploy once the correct binary is selected. License in practice: Apache-2.0 is permissive; you can use sccache in commercial and proprietary projects without licensing restrictions, though you must include a copy of the license and note any modifications. Quickstart: # Install via pip pip install sccache # Use as compiler wrapper sccache gcc -o foo.o -c foo.c # Or set as Rust compiler wrapper export RUSTC_WRAPPER=/path/to/sccache cargo build Requires a supported compiler (gcc, clang, MSVC, rustc, NVCC, NVC++, hipcc, or diab) already installed on the system; sccache is a wrapper, not a compiler itself. Verify before relying: - Whether the PyPI package includes all documented storage backends (S3, Redis, Memcached, GCS, Azure, etc.) or if some require separate compilation. - Performance overhead of the client-server model and typical cache hit rates in real build environments. - Compatibility with specific CI/CD systems beyond GitHub Actions (Jenkins, GitLab CI, etc.). ## Package facts - License: Apache-2.0 (permissive) - Python support: unspecified - Install friction: medium - Maintenance: active - Downloads: 975.3K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags compiler caching wrapper, ccache alternative, distributed compilation cache, build cache cloud storage, compilation result caching, rust compiler wrapper, cuda compilation cache, build-acceleration, compiler-cache, distributed-builds [View on SkillFed](https://skillfed.io/packages/sccache) · [View on PyPI](https://pypi.org/project/sccache/)