Skip to content

Commit 40f4b21

Browse files
committed
Document the difference between Clang's -darwin and -macosx targets
1 parent 20c909f commit 40f4b21

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)