METAL-STRIP(1) Metal METAL-STRIP(1)

metal-strip - metal stripping tool

metal-strip [options] filename

The default behavior of metal-strip is to strip out non-public symbols from <filename>. More information can be stripped out by using individual options.

Display available options.

Display metal-strip version.

Add <arch> to the list of slices to strip. It can be specified multiple times. The default behavior is to strip to all the slices.

Write output to <filename>. If not specified, the overwrite the input file.

Strip debug info -- default is off.

Strip type names -- default is off.

Save debug line tables when stripping out debug info.

Save source embedded into the binary -- default is off.

Save tracepoint data structures -- default is off.

To strip out non-public symbols:

$ metal-strip foo.metallib -o foo-stripped.metallib


To strip out type names as well:

$ metal-strip foo.metallib -T -o foo-stripped.metallib


To strip out debug info:

$ metal-strip foo.metallib -S -o foo-stripped.metallib


To strip out all debug info but line table info:

$ metal-strip foo.metallib -S -debug_line_table -o foo-stripped.metalllib


To report bugs, please visit <https://developer.apple.com/bug-reporting/>.

metal-toolchain(7)

2014-2024, The Metal Team

July 10, 2024 32023