Open viirya opened 2 years ago
After installing osxcross toolchain, x86_64-apple-darwin
can be cross-built. But aarch64-apple-darwin
still fails with an error:
= note: ld: in /lz4-rs/target/aarch64-apple-darwin/debug/deps/liblz4_sys-8410d92b71c4cdc8.rlib(lz4frame.o), archive member 'lz4frame.o' with length 72128 is not mach-o or llvm bitcode for architecture arm64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
Hi,
I'm working on cross-compilation of a project on Linux for Mac binaries. Got an error currently:
So based on https://stackoverflow.com/questions/4391192/why-do-i-get-cc1plus-error-unrecognized-command-line-option-arch, seems
-arch
is only for Xcode's gcc. Not sure if lz4-sys's custom build script is able to make some change to fix that?