rust/compiler/rustc_target/src
Matthias Krüger 7b0360e516
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.
2022-08-03 22:29:25 +02:00
..
abi Auto merge of #92268 - jswrenn:transmute, r=oli-obk 2022-08-02 21:17:31 +00:00
asm Remove unused StableMap and StableSet types from rustc_data_structures 2022-07-20 13:11:39 +02:00
spec Add support for link-flavor rust-lld for iOS, tvOS and watchOS 2022-08-03 15:41:05 +00:00
json.rs Use serde_json for target spec json 2022-06-03 16:46:19 +00:00
lib.rs rustc_target: Some more tests and fixes for linker arguments 2022-06-25 21:57:08 +03:00
tests.rs Use serde_json for target spec json 2022-06-03 16:46:19 +00:00