unstale

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 init

@unstale/cli on npm

cc 193 changes

Breaking changes 4

  • Reads the process environment once per Build, on first use.

    1.6.0release notes

  • Inherits x86 target features from RUSTFLAGS.

    1.5.0release notes

  • The minimum supported Rust version is updated to 1.65.

    1.4.3release notes

  • Raises the minimum supported Rust version to 1.64.

    1.4.1release notes

Deprecations 3

New APIs and options 13

  • A source root is added to provide stable external object names.

    1.9.0release notes

  • Adds an environment variable to override prefer_clang_cl_over_msvc.

    1.8.0release notes

  • Adds CC_MASM_ASM for configuring MASM assembly handling.

    1.7.0release notes

  • Adds Tool::get_envs to retrieve tool environment variables.

    1.7.0release notes

  • Adds Build::create_archive for creating an archive.

    1.6.0release notes

  • Adds structured access to cc's messages through Build::message_logger.

    1.6.0release notes

  • Adds an environment variable to link the C++ standard library statically from outside.

    1.6.0release notes

  • Adds emit_link_directives.

    1.6.0release notes

  • Adds support for Z80 and SM83 targets.

    1.4.7release notes

  • Adds support for the aarch64-unknown-linux-pauthtest target.

    1.2.67release notes

  • Adds support for more bare-metal 32-bit Arm targets.

    1.2.64release notes

  • The relibc environment is now recognized.

    1.2.62release notes

  • Adds a method for setting environment variables of compiler invocations and other child processes.

    1.2.57release notes

Performance 1

  • Issues compilation commands more frequently in parallel.

    1.7.0release notes

Behavior and default changes 14

  • AddressSanitizer is passed on to the C compiler.

    1.9.0release notes

  • The build script emits rerun-if-env-changed directives for the compiler's own environment variables.

    1.9.0release notes

  • Links c++ when Clang uses libc++.

    1.7.0release notes

  • Redox riscv64 uses the lp64d ABI.

    1.5.1release notes

  • Adds aarch64_be to the targets handled by prefix_for_target.

    1.4.1release notes

  • Uses the lp64d ABI for Managarm riscv64.

    1.4.1release notes

  • Trim paths are now supported when using clang-cl.exe.

    1.4.0release notes

  • Inherits path remap rules from cargo trim-paths.

    1.3.0release notes

  • Adds default compiler prefixes for the thumbv7a, thumbv7r, and thumbv8r bare-metal targets.

    1.2.64release notes

  • Exceptions are now allowed on wasm platforms.

    1.2.62release notes

  • Archiver batches are sized according to argument length rather than argument count.

    1.2.57release notes

  • PIC is disabled for this target.

    1.2.55release notes

  • Supports more of Cargo's debug levels.

    1.2.49release notes

  • Adds identification for HelenOS linkers, which may affect linker detection when using cc.

    1.2.47release notes

Tooling 6

  • Adds reproducible CodeView and source path remapping.

    1.11.0release notes

  • Initial libtool support was added.

    1.10.0release notes

  • Compile commands can be collected into a compile_commands.json file.

    1.9.0release notes

  • Falls back to llvm-ml for MASM files.

    1.7.0release notes

  • Adds kache to the supported compiler wrappers.

    1.2.66release notes

  • Adds support for building with Visual Studio 2026.

    1.2.46release notes

Fixes and other changes 52

  • Prevents GCC from merging identical variables under AddressSanitizer.

    1.11.2release notes

  • Passes .cc sources to cl.exe as one -Tp<path> argument.

    1.11.0release notes

  • Passes -march=x86-64 to GCC on x86_64 Linux.

    1.11.0release notes

  • The child's exit status is now printed as debug output in parallel mode.

    1.10.0release notes

  • Fixed target parsing for wasm32-none-component.

    1.10.0release notesrelease notes

  • The order of flag and flag_if_supported is preserved.

    1.9.0release notes

  • Disabled linker-plugin LTO is honored, and clang is no longer preferred when -Clinker-plugin-lto=no.

    1.9.0release notes

  • On MSVC, objects are passed to the archiver relative to the output directory.

    1.9.0release notes

  • RUSTC_WRAPPER is applied to the cl.exe that cc finds itself.

    1.9.0release notes

  • These flags are no longer forwarded to the C compiler.

    1.8.0release notes

  • Target crt-static is no longer applied when the target is overridden.

    1.8.0release notes

  • Replaces a panic with an error where appropriate.

    1.8.0release notes

  • Fixes the help thread receiving more jobserver tokens than necessary.

    1.8.0release notes

  • The build no longer panics when WASM_MUSL_SYSROOT is not set.

    1.8.0release notes

  • Program name checks now ignore ASCII case.

    1.7.0release notes

  • Fixes target parsing for the powerpc64-ibm-aix ABI.

    1.7.0release notes

  • Adds support for the armeb-unknown-linux-gnueabi target.

    1.6.0release notes

  • Keys the flag support cache on target, host, language and environment.

    1.6.0release notes

  • Forwards each line of compiler stderr once and whole when using parallel.

    1.6.0release notes

  • The static C++ stdlib is linked with -bundle once per Build.

    1.5.1release notes

  • The file name cl.exe echoes is no longer reported as a warning.

    1.5.0release notes

  • MSVC /link flags are ignored with a warning.

    1.5.0release notes

  • 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.0release notes

  • OUT_DIR is stripped from the object file name hash too, changing how object file names are determined.

    1.4.7release notes

  • Target info parsing is fixed, which may affect how cc handles target information.

    1.4.7release notes

  • Prevents check_exe from dropping flags, so compiler flags are preserved.

    1.4.6release notes

  • No longer silently drops flags when used outside Cargo build scripts; probing works without OUT_DIR via tempfile.

    1.4.5release notes

  • Overrides set through Build::env are now honored in the Android llvm-ar probe.

    1.4.4release notes

  • Overrides set through Build::env are now honored in flag support and compiler family detection probes.

    1.4.4release notes

  • Does not emit this compiler flag when it is unsupported.

    1.4.2release notes

  • Infers NEON, not VFPv4, when the target name contains neon.

    1.4.2release notes

  • Fixes the corresponding CFLAGS for -Cforce-frame-pointers.

    1.4.1release notes

  • Makes cc work on Motor OS.

    1.4.1release notes

  • Fixes parsing of the thumbv7a-vex-v5 target.

    1.4.1release notes

  • Fixes target parsing for aarch64-unknown-linux-pauthtest.

    1.2.66release notes

  • Adds support for new QNX targets.

    1.2.66release notes

  • The sh4 architecture is now recognized when parsing architectures.

    1.2.62release notes

  • Warnings from the ar D modifier probe are suppressed.

    1.2.60release notes

  • Archives created with the D modifier are now deterministic.

    1.2.59release notes

  • Fixes target ABI parsing for sanitiser targets.

    1.2.59release notes

  • Fixes the clang-cl target when cross-compiling.

    1.2.56release notes

  • Fix parsing for the x86_64-unknown-linux-gnuasan target.

    1.2.54release notes

  • Adds missing RISC-V target support.

    1.2.53release notes

  • CUDA compilation checks for sbsa-linux when targeting aarch64.

    1.2.52release notes

  • Build::env_tool now checks for .exe on Windows.

    1.2.52release notes

  • warnings(false) now actually suppresses compiler warnings.

    1.2.50release notes

  • Fixes run_output to prevent infinite blocking.

    1.2.49release notes

  • Fixes a deadlock in detect_family.

    1.2.49release notes

  • Uses a default check for the env field when determining the Apple SDK name.

    1.2.45release notes

  • Fixes a debug assertion for env/abi mismatches.

    1.2.44release notes

  • Stops passing an invalid target to llvm-mingw's cross-compilation wrappers.

    1.2.44release notes

  • Linker-plugin LTO now uses -flto=thin.

    1.2.42release notes