Rollup merge of #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
This commit is contained in:
commit
a25041fd77
@ -52,5 +52,10 @@ Cross-compilation of these targets are supported using Clang, but may require
|
|||||||
Xcode or the macOS SDK (`MacOSX.sdk`) to be available to compile C code and
|
Xcode or the macOS SDK (`MacOSX.sdk`) to be available to compile C code and
|
||||||
to link.
|
to link.
|
||||||
|
|
||||||
|
The Clang target is suffixed with `-macosx`. Clang's `-darwin` target refers
|
||||||
|
to Darwin platforms in general (macOS/iOS/tvOS/watchOS/visionOS), and requires
|
||||||
|
the `-mmacosx-version-min=...`, `-miphoneos-version-min=...` or similar flags
|
||||||
|
to disambiguate.
|
||||||
|
|
||||||
The path to the SDK can be passed to `rustc` using the common `SDKROOT`
|
The path to the SDK can be passed to `rustc` using the common `SDKROOT`
|
||||||
environment variable.
|
environment variable.
|
||||||
|
Loading…
Reference in New Issue
Block a user