1
Fork 0

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 using `object` to extract a library for the target platform when passed a univeral library.

Fixes #55235
This commit is contained in:
Alex Gaynor 2022-06-30 15:01:38 -04:00
parent 6b139c5b3e
commit c65c36242e
Failed to extract signature
6 changed files with 80 additions and 3 deletions

View file

@ -34,3 +34,4 @@ rustc_target = { path = "../rustc_target" }
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
rustc_ast = { path = "../rustc_ast" }
rustc_span = { path = "../rustc_span" }
tempfile = "3.2.0"