# What changed in cc

> 93 changes in cc 1 from its official release notes, upgrade guides and advisories: 4 breaking, 3 deprecations, 13 new APIs and options. Each one cited. Sources checked 2026-11-27. HTML: https://unstale.sh/cargo/cc/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## cc 1

### Breaking changes

- Reads the process environment once per Build, on first use. (1.6.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.6.0)
- Inherits x86 target features from RUSTFLAGS. (1.5.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.5.0)
- The minimum supported Rust version is updated to 1.65. (1.4.3) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.3)
- Raises the minimum supported Rust version to 1.64. (1.4.1) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.1)

### Deprecations

- Tool::env is deprecated; use Tool::get_envs instead. (1.7.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.7.0)
- The shared_flag API is deprecated. (1.2.43) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.43)
- The static_flag API is deprecated. (1.2.43) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.43)

### New APIs and options

- A source root is added to provide stable external object names. (1.9.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.9.0)
- Adds an environment variable to override prefer_clang_cl_over_msvc. (1.8.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.8.0)
- Adds CC_MASM_ASM for configuring MASM assembly handling. (1.7.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.7.0)
- Adds Tool::get_envs to retrieve tool environment variables. (1.7.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.7.0)
- Adds Build::create_archive for creating an archive. (1.6.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.6.0)
- Adds structured access to cc's messages through Build::message_logger. (1.6.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.6.0)
- Adds an environment variable to link the C++ standard library statically from outside. (1.6.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.6.0)
- Adds emit_link_directives. (1.6.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.6.0)
- Adds support for Z80 and SM83 targets. (1.4.7) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.7)
- Adds support for the aarch64-unknown-linux-pauthtest target. (1.2.67) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.67)
- Adds support for more bare-metal 32-bit Arm targets. (1.2.64) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.64)
- The relibc environment is now recognized. (1.2.62) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.62)
- Adds a method for setting environment variables of compiler invocations and other child processes. (1.2.57) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.57)

### Performance

- Issues compilation commands more frequently in parallel. (1.7.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.7.0)

### Behavior and default changes

- AddressSanitizer is passed on to the C compiler. (1.9.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.9.0)
- The build script emits rerun-if-env-changed directives for the compiler's own environment variables. (1.9.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.9.0)
- Links `c++` when Clang uses libc++. (1.7.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.7.0)
- Redox riscv64 uses the lp64d ABI. (1.5.1) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.5.1)
- Adds aarch64_be to the targets handled by prefix_for_target. (1.4.1) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.1)
- Uses the lp64d ABI for Managarm riscv64. (1.4.1) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.1)
- Trim paths are now supported when using clang-cl.exe. (1.4.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.0)
- Inherits path remap rules from cargo trim-paths. (1.3.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.3.0)
- Adds default compiler prefixes for the thumbv7a, thumbv7r, and thumbv8r bare-metal targets. (1.2.64) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.64)
- Exceptions are now allowed on wasm platforms. (1.2.62) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.62)
- Archiver batches are sized according to argument length rather than argument count. (1.2.57) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.57)
- PIC is disabled for this target. (1.2.55) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.55)
- Supports more of Cargo's debug levels. (1.2.49) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.49)
- Adds identification for HelenOS linkers, which may affect linker detection when using cc. (1.2.47) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.47)

### Tooling

- Adds reproducible CodeView and source path remapping. (1.11.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.11.0)
- Initial libtool support was added. (1.10.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.10.0)
- Compile commands can be collected into a compile_commands.json file. (1.9.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.9.0)
- Falls back to llvm-ml for MASM files. (1.7.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.7.0)
- Adds kache to the supported compiler wrappers. (1.2.66) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.66)
- Adds support for building with Visual Studio 2026. (1.2.46) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.46)

### Fixes and other changes

- Prevents GCC from merging identical variables under AddressSanitizer. (1.11.2) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.11.2)
- Passes .cc sources to cl.exe as one -Tp<path> argument. (1.11.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.11.0)
- Passes -march=x86-64 to GCC on x86_64 Linux. (1.11.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.11.0)
- The child's exit status is now printed as debug output in parallel mode. (1.10.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.10.0)
- Fixed target parsing for wasm32-none-component. (1.10.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.11.1), [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.10.0)
- The order of flag and flag_if_supported is preserved. (1.9.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.9.0)
- Disabled linker-plugin LTO is honored, and clang is no longer preferred when -Clinker-plugin-lto=no. (1.9.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.9.0)
- On MSVC, objects are passed to the archiver relative to the output directory. (1.9.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.9.0)
- RUSTC_WRAPPER is applied to the cl.exe that cc finds itself. (1.9.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.9.0)
- These flags are no longer forwarded to the C compiler. (1.8.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.8.0)
- Target crt-static is no longer applied when the target is overridden. (1.8.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.8.0)
- Replaces a panic with an error where appropriate. (1.8.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.8.0)
- Fixes the help thread receiving more jobserver tokens than necessary. (1.8.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.8.0)
- The build no longer panics when WASM_MUSL_SYSROOT is not set. (1.8.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.8.0)
- Program name checks now ignore ASCII case. (1.7.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.7.0)
- Fixes target parsing for the powerpc64-ibm-aix ABI. (1.7.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.7.0)
- Adds support for the armeb-unknown-linux-gnueabi target. (1.6.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.6.0)
- Keys the flag support cache on target, host, language and environment. (1.6.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.6.0)
- Forwards each line of compiler stderr once and whole when using parallel. (1.6.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.6.0)
- The static C++ stdlib is linked with -bundle once per Build. (1.5.1) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.5.1)
- The file name cl.exe echoes is no longer reported as a warning. (1.5.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.5.0)
- MSVC /link flags are ignored with a warning. (1.5.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.5.0)
- Passes -Tp immediately before .cc sources on MSVC, except clang-cl, so they are compiled as C++ rather than treated as object files. (1.5.0) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.5.0)
- OUT_DIR is stripped from the object file name hash too, changing how object file names are determined. (1.4.7) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.7)
- Target info parsing is fixed, which may affect how cc handles target information. (1.4.7) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.7)
- Prevents check_exe from dropping flags, so compiler flags are preserved. (1.4.6) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.6)
- No longer silently drops flags when used outside Cargo build scripts; probing works without OUT_DIR via tempfile. (1.4.5) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.5)
- Overrides set through Build::env are now honored in the Android llvm-ar probe. (1.4.4) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.4)
- Overrides set through Build::env are now honored in flag support and compiler family detection probes. (1.4.4) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.4)
- Does not emit this compiler flag when it is unsupported. (1.4.2) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.2)
- Infers NEON, not VFPv4, when the target name contains neon. (1.4.2) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.2)
- Fixes the corresponding CFLAGS for -Cforce-frame-pointers. (1.4.1) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.1)
- Makes cc work on Motor OS. (1.4.1) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.1)
- Fixes parsing of the thumbv7a-vex-v5 target. (1.4.1) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.4.1)
- Fixes target parsing for aarch64-unknown-linux-pauthtest. (1.2.66) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.66)
- Adds support for new QNX targets. (1.2.66) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.66)
- The sh4 architecture is now recognized when parsing architectures. (1.2.62) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.62)
- Warnings from the ar D modifier probe are suppressed. (1.2.60) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.60)
- Archives created with the D modifier are now deterministic. (1.2.59) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.59)
- Fixes target ABI parsing for sanitiser targets. (1.2.59) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.59)
- Fixes the clang-cl target when cross-compiling. (1.2.56) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.56)
- Fix parsing for the x86_64-unknown-linux-gnuasan target. (1.2.54) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.54)
- Adds missing RISC-V target support. (1.2.53) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.53)
- CUDA compilation checks for sbsa-linux when targeting aarch64. (1.2.52) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.52)
- Build::env_tool now checks for .exe on Windows. (1.2.52) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.52)
- warnings(false) now actually suppresses compiler warnings. (1.2.50) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.50)
- Fixes run_output to prevent infinite blocking. (1.2.49) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.49)
- Fixes a deadlock in detect_family. (1.2.49) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.49)
- Uses a default check for the env field when determining the Apple SDK name. (1.2.45) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.45)
- Fixes a debug assertion for env/abi mismatches. (1.2.44) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.44)
- Stops passing an invalid target to llvm-mingw's cross-compilation wrappers. (1.2.44) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.44)
- Linker-plugin LTO now uses -flto=thin. (1.2.42) — [release notes](https://github.com/rust-lang/cc-rs/releases/tag/cc-v1.2.42)
