about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-03 22:29:25 +0200
committerGitHub <noreply@github.com>2022-08-03 22:29:25 +0200
commit7b0360e516ffa5979b38958a274243294fb61700 (patch)
treeef7bdaf1d9dd090e8b3aacc807415ce1e6746d95 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentd6b96b61e75dd5ad24a77d6a26a7eef3b492856e (diff)
parent78bbe57c88469abbbcd1c46c8e8f3cf014b5a154 (diff)
downloadrust-7b0360e516ffa5979b38958a274243294fb61700.tar.gz
rust-7b0360e516ffa5979b38958a274243294fb61700.zip
Rollup merge of #98771 - Thog:rust-lld-apple-target, r=petrochenkov
Add support for link-flavor rust-lld for iOS, tvOS and watchOS

This adds support for rust-lld for Apple *OS targets.

This was tested against targets ``aarch64-apple-ios`` and ``aarch64-apple-ios-sim`` with [a simple test program](https://github.com/Thog/rust-lld-apple-target_test).

It currently doesn't work with targets ``armv7-apple-ios`` and ``armv7s-apple-ios`` because of ``symbols.o`` not being generated with the correct CPU subtype. This will require changes in the ``object`` crate to expose an API.

As ``ld64.lld`` requires ``-platform_version`` with the minimal version supported and an sdk version, I made ``rustc_target::apple_base`` public to get access to ``*os_deployment_target``  helper functions and also added ``tvos_deployment_target`` as it was missing.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions