rust/src
bors 9782770a81 Auto merge of #121430 - madsmtm:mac-catalyst-iOSSupport, r=wesleywiser
Add `/System/iOSSupport` to the library search path on Mac Catalyst

On macOS, `/System/iOSSupport` contains iOS frameworks like UIKit, which is the whole idea of Mac Catalyst.

To link to these, we need to explicitly tell the linker about the support library stubs provided in the macOS SDK under the same path.

Concretely, when building a binary for Mac Catalyst, Xcode passes the following flags to the linker:
```
-iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/iOSSupport/System/Library/Frameworks
-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/iOSSupport/usr/lib
```

This is not something that can be disabled (it's enabled as soon as you enable `SUPPORTS_MACCATALYST`), so I think it's pretty safe to say that we don't need an option to turn these off.

I've chosen to slightly deviate from what Xcode does and use `-F` instead of `-iframework`, since we don't need to change the header search path, and this way the flags nicely match on all the linkers. From what I could tell by reading Clang sources, there shouldn't be a difference when just running the linker.

CC `@BlackHoleFox,` `@shepmaster` (I accidentally let rustbot choose the reviewer).
2024-04-12 22:27:33 +00:00
..
bootstrap correct the handling of bootstrap-cache-path option 2024-04-11 14:57:10 +03:00
ci Rollup merge of #123624 - GuillaumeGomez:theme-switch-tests, r=notriddle 2024-04-09 06:02:22 +02:00
doc Add support for Arm64EC inline assembly 2024-04-10 10:06:44 -07:00
etc Auto merge of #123317 - RalfJung:test-in-miri, r=m-ou-se,saethlin,onur-ozkan 2024-04-05 13:17:09 +00:00
librustdoc Auto merge of #123823 - matthiaskrgr:rollup-8zdtggx, r=matthiaskrgr 2024-04-11 21:56:11 +00:00
llvm-project@af8f9eb61a Update to LLVM 18.1.3 2024-04-06 21:07:35 +08:00
rustdoc-json-types Normalize layout test to protect against android alignment differences 2024-04-08 12:06:28 +00:00
tools Auto merge of #121430 - madsmtm:mac-catalyst-iOSSupport, r=wesleywiser 2024-04-12 22:27:33 +00:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Bump stage0 2024-03-19 19:27:24 -04:00
version Bump to 1.79.0 2024-03-16 09:56:09 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.