about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-01-29 09:17:29 +0900
committerGitHub <noreply@github.com>2021-01-29 09:17:29 +0900
commita3c060c7f5b76f5c371f40349ac868d7271fa817 (patch)
tree7694e5ea03a2d720de9a87dfd663ac0d597cdb3b /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent3eac643d044ad9e3841128ab122827e161c65dbd (diff)
parent8553aeeb66afa1369548f9e7d88409459f5ff815 (diff)
downloadrust-a3c060c7f5b76f5c371f40349ac868d7271fa817.tar.gz
rust-a3c060c7f5b76f5c371f40349ac868d7271fa817.zip
Rollup merge of #80215 - visigoth:issue-80202-fix, r=estebank
Use -target when linking binaries for Mac Catalyst

When running `rustc` with `-target x86_64-apple-ios-macabi`, the linker
eventually gets run with `-arch x86_64`, because the linker back end splits the
LLVM target triple and uses the first token as the target architecture. However,
this does not work for the Mac Catalyst ABI, which is a separate target from
Darwin.

Specifying the full target triple with `-target` allows Mac Catalyst binaries to
link and run.

closes #80202
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions