Thread with 7 posts

jump to expanded post
R , @r@glauca.space
(open profile)

hey, are _you_ for some reason trying to build some simple Rust code for a mac, but you aren't on a mac?

turns out you *only* need a few hundred kilobytes of yaml files and some ~magic linker args~ to make this work

rustflags = ["-Clinker=rust-lld", "-Lxtra-macos", "-Clink-arg=-Fxtra-macos"]

don't need to fuck around with apple IDs, SDKs, and such nonsense

IANAL, but these files, especially with they way they've been constructed, are almost certainly not copyrightable

Open remote post (opens in a new window)

@r oh!! this reminds me of touchHLE's cross-compilation toolchain (https://github.com/touchHLE/common-3.0-sdk / https://github.com/touchHLE/touchHLE/blob/trunk/tests/integration.rs)

it's indeed the case that you don't need much to compile for an Apple target using upstream LLVM; the Apple platforms are very heavy on dynamic linking and stuff all the critical stuff into one big library, so they don't actually need that much help; neat seeing someone else doing a similar thing!

Open thread at this post