I have a lib that provides both libxxx_x86_64.a
and libxxx_arm64.a
. When linking using ld
x86_64.a is skipped,
ld: warning: ignoring file _pod_work_dir/Pods/____/libs/______x86_64.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
however lld won't do so
1d64.11d: error: _pod_work_dir/Pods/_____/libs/______x86_64.a(___+___.o)has architecture x86_64 which is incompatible with target architecture arm64
Is there an option with lld I can make this behavior a warning instead of error.
the lib is downloaded directly into build dir by cmake or pods script like this. So the project just try to link x86_64.a as well.