Skip to content

Commit fbb8a28

Browse files
authored
Unrolled build for rust-lang#132417
Rollup merge of rust-lang#132417 - madsmtm:document-darwin-macos-difference, r=jieyouxu macOS: Document the difference between Clang's `-darwin` and `-macosx` targets `rustc`'s `*-apple-darwin` targets are badly named (they should've been called `*-apple-macos`), and this causes confusion wrt. the similarly named but somewhat incompatible Clang targets. So let's document the difference to at least make things a _little_ easier on our users. ``@rustbot`` label O-macos A-docs
2 parents 24254ef + 40f4b21 commit fbb8a28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/doc/rustc/src/platform-support/apple-darwin.md

+5
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,10 @@ Cross-compilation of these targets are supported using Clang, but may require
5252
Xcode or the macOS SDK (`MacOSX.sdk`) to be available to compile C code and
5353
to link.
5454

55+
The Clang target is suffixed with `-macosx`. Clang's `-darwin` target refers
56+
to Darwin platforms in general (macOS/iOS/tvOS/watchOS/visionOS), and requires
57+
the `-mmacosx-version-min=...`, `-miphoneos-version-min=...` or similar flags
58+
to disambiguate.
59+
5560
The path to the SDK can be passed to `rustc` using the common `SDKROOT`
5661
environment variable.

0 commit comments

Comments
 (0)