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:
parent
6b139c5b3e
commit
c65c36242e
6 changed files with 80 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue