Skip to main content

install_libsystem_bytes

Function install_libsystem_bytes 

Source
pub fn install_libsystem_bytes(
    root: &Path,
    source_bytes: &[u8],
    origin: LibsystemOrigin,
) -> Result<LibsystemInstall, BottleError>
Expand description

Writes raw Mach-O bytes into {root}/usr/lib/libSystem.B.dylib, rewriting LC_ID_DYLIB when needed. Used for the crates.io-embedded freestanding dylib and by install after reading a file.