Skip to main content

Crate ctcb_strip

Crate ctcb_strip 

Source
Expand description

Strip non-essential files from LLVM/Clang toolchain distributions.

This crate removes unnecessary files from downloaded LLVM distributions and optionally strips debug symbols from binaries to minimize package size.

Structs§

StripConfig
Configuration for stripping.
StripStats
Result statistics from stripping.

Constants§

ESSENTIAL_BINARIES
Essential binaries to keep (base names without extensions).

Functions§

find_llvm_root
Find the LLVM root directory (the one containing a bin/ subdirectory).
is_essential_binary
Check if a binary name (with or without extension) is in the essential list.
strip_llvm
Main entry point: strip an LLVM distribution.