rust-ffmpeg-sys icon indicating copy to clipboard operation
rust-ffmpeg-sys copied to clipboard

Cross-compilation fixes for Apple M1/x86

Open kornelski opened this issue 4 years ago • 4 comments

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.

kornelski avatar Nov 22 '21 01:11 kornelski

@zmwangx Hello. Can you have a look at this?

kornelski avatar Jan 09 '22 20:01 kornelski

Hi! Thanks for your submission :) Could you fix the linting errors so we can see whether it builds successfully?

Polochon-street avatar Jan 10 '22 19:01 Polochon-street

This is still broken in 5.0.0.

kornelski avatar Feb 16 '22 02:02 kornelski