FractalFir / rustc_codegen_clr

This rust compiler backend(module) emmits valid CIL (.NET IR), enabling you to use Rust in .NET projects.
MIT License
1.56k stars 35 forks source link

Add support of macOS platforms #34

Closed sisungo closed 9 months ago

sisungo commented 9 months ago

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().