cargo / cc
cc
What changed in cc 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-27.
4 breaking3 deprecations13 new APIs and options1 performance14 behavior and defaults6 tooling52 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcc 193 changes
Breaking changes 4
Reads the process environment once per Build, on first use.
Inherits x86 target features from RUSTFLAGS.
The minimum supported Rust version is updated to 1.65.
Raises the minimum supported Rust version to 1.64.
Deprecations 3
Tool::env is deprecated; use Tool::get_envs instead.
The shared_flag API is deprecated.
The static_flag API is deprecated.
New APIs and options 13
A source root is added to provide stable external object names.
Adds an environment variable to override prefer_clang_cl_over_msvc.
Adds CC_MASM_ASM for configuring MASM assembly handling.
Adds Tool::get_envs to retrieve tool environment variables.
Adds Build::create_archive for creating an archive.
Adds structured access to cc's messages through Build::message_logger.
Adds an environment variable to link the C++ standard library statically from outside.
Adds emit_link_directives.
Adds support for Z80 and SM83 targets.
Adds support for the aarch64-unknown-linux-pauthtest target.
Adds support for more bare-metal 32-bit Arm targets.
The relibc environment is now recognized.
Adds a method for setting environment variables of compiler invocations and other child processes.
Performance 1
Issues compilation commands more frequently in parallel.
Behavior and default changes 14
AddressSanitizer is passed on to the C compiler.
The build script emits rerun-if-env-changed directives for the compiler's own environment variables.
Links
c++when Clang uses libc++.Redox riscv64 uses the lp64d ABI.
Adds aarch64_be to the targets handled by prefix_for_target.
Uses the lp64d ABI for Managarm riscv64.
Trim paths are now supported when using clang-cl.exe.
Inherits path remap rules from cargo trim-paths.
Adds default compiler prefixes for the thumbv7a, thumbv7r, and thumbv8r bare-metal targets.
Exceptions are now allowed on wasm platforms.
Archiver batches are sized according to argument length rather than argument count.
PIC is disabled for this target.
Supports more of Cargo's debug levels.
Adds identification for HelenOS linkers, which may affect linker detection when using cc.
Tooling 6
Adds reproducible CodeView and source path remapping.
Initial libtool support was added.
Compile commands can be collected into a compile_commands.json file.
Falls back to llvm-ml for MASM files.
Adds kache to the supported compiler wrappers.
Adds support for building with Visual Studio 2026.
Fixes and other changes 52
Prevents GCC from merging identical variables under AddressSanitizer.
Passes .cc sources to cl.exe as one -Tp<path> argument.
Passes -march=x86-64 to GCC on x86_64 Linux.
The child's exit status is now printed as debug output in parallel mode.
Fixed target parsing for wasm32-none-component.
The order of flag and flag_if_supported is preserved.
Disabled linker-plugin LTO is honored, and clang is no longer preferred when -Clinker-plugin-lto=no.
On MSVC, objects are passed to the archiver relative to the output directory.
RUSTC_WRAPPER is applied to the cl.exe that cc finds itself.
These flags are no longer forwarded to the C compiler.
Target crt-static is no longer applied when the target is overridden.
Replaces a panic with an error where appropriate.
Fixes the help thread receiving more jobserver tokens than necessary.
The build no longer panics when WASM_MUSL_SYSROOT is not set.
Program name checks now ignore ASCII case.
Fixes target parsing for the powerpc64-ibm-aix ABI.
Adds support for the armeb-unknown-linux-gnueabi target.
Keys the flag support cache on target, host, language and environment.
Forwards each line of compiler stderr once and whole when using parallel.
The static C++ stdlib is linked with -bundle once per Build.
The file name cl.exe echoes is no longer reported as a warning.
MSVC /link flags are ignored with a warning.
Passes -Tp immediately before .cc sources on MSVC, except clang-cl, so they are compiled as C++ rather than treated as object files.
OUT_DIR is stripped from the object file name hash too, changing how object file names are determined.
Target info parsing is fixed, which may affect how cc handles target information.
Prevents check_exe from dropping flags, so compiler flags are preserved.
No longer silently drops flags when used outside Cargo build scripts; probing works without OUT_DIR via tempfile.
Overrides set through Build::env are now honored in the Android llvm-ar probe.
Overrides set through Build::env are now honored in flag support and compiler family detection probes.
Does not emit this compiler flag when it is unsupported.
Infers NEON, not VFPv4, when the target name contains neon.
Fixes the corresponding CFLAGS for -Cforce-frame-pointers.
Makes cc work on Motor OS.
Fixes parsing of the thumbv7a-vex-v5 target.
Fixes target parsing for aarch64-unknown-linux-pauthtest.
Adds support for new QNX targets.
The sh4 architecture is now recognized when parsing architectures.
Warnings from the ar D modifier probe are suppressed.
Archives created with the D modifier are now deterministic.
Fixes target ABI parsing for sanitiser targets.
Fixes the clang-cl target when cross-compiling.
Fix parsing for the x86_64-unknown-linux-gnuasan target.
Adds missing RISC-V target support.
CUDA compilation checks for sbsa-linux when targeting aarch64.
Build::env_tool now checks for .exe on Windows.
warnings(false) now actually suppresses compiler warnings.
Fixes run_output to prevent infinite blocking.
Fixes a deadlock in detect_family.
Uses a default check for the env field when determining the Apple SDK name.
Fixes a debug assertion for env/abi mismatches.
Stops passing an invalid target to llvm-mingw's cross-compilation wrappers.
Linker-plugin LTO now uses -flto=thin.