rust-ffmpeg-sys
rust-ffmpeg-sys copied to clipboard
Cross-compilation fixes for Apple M1/x86
Cross-compilation was assuming a setup typical for Linux. Cross-compilation from ARM macOS to Intel macOS has its own quirky requirements, because it uses the same system-global compiler, but needs different flags instead.
Also fixes a bug where cfg!(target_os) was used. build.rs runs on the host OS, so compilation target of build.rs is always the same as the host.
@zmwangx Hello. Can you have a look at this?
Hi! Thanks for your submission :) Could you fix the linting errors so we can see whether it builds successfully?
This is still broken in 5.0.0.