summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-05 11:41:40 +0000
committerbors <bors@rust-lang.org>2022-10-05 11:41:40 +0000
commit8c71b67159e1a3d0863caf28b7cefee0160cb927 (patch)
treece442e01e1f02f2303faee0d685c189b7d2811dc /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentdd8c3a80dd2e5a0b62c3ef77511f3296070f78e2 (diff)
parentc65c36242e99ddbf787dcdd9bd2d14f42f7cfce6 (diff)
downloadrust-8c71b67159e1a3d0863caf28b7cefee0160cb927.tar.gz
rust-8c71b67159e1a3d0863caf28b7cefee0160cb927.zip
Auto merge of #98736 - alex:lipo-magic, r=bjorn3
resolve error when attempting to link a universal library on macOS

Previously attempting to link universal libraries into libraries (but not binaries) would produce an error that "File too small to be an archive". This works around this by invoking `lipo -thin` to extract a library for the target platform when passed a univeral library.

Fixes #55235

It's worth acknowledging that this implementation is kind of a horrible hack. Unfortunately I don't know how to do anything better, hopefully this PR will be a jumping off point.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions