Currently get_libc() is not implemented for macOS in src/bin/linker/main.rs, so we will get an error compiling on macOS platforms due to lack of that function.
This PR implements get_libc() for #[cfg(target_os = "macos)]". The implementation just simply returns "libSystem.B.dylib".into().
Currently
get_libc()
is not implemented for macOS insrc/bin/linker/main.rs
, so we will get an error compiling on macOS platforms due to lack of that function.This PR implements
get_libc()
for#[cfg(target_os = "macos)]"
. The implementation just simply returns"libSystem.B.dylib".into()
.