diff options
| author | Mads Marquart <mads@marquart.dk> | 2024-09-29 17:20:59 +0200 |
|---|---|---|
| committer | Mads Marquart <mads@marquart.dk> | 2024-10-31 18:20:57 +0100 |
| commit | 40f4b216ebe79541c0199fe04b4c65ff729cef18 (patch) | |
| tree | f08173d90629ccec93a35354f5cbbc3fc441e2d0 | |
| parent | 20c909ff9cdd88d33768a4ddb8952927a675b0ad (diff) | |
| download | rust-40f4b216ebe79541c0199fe04b4c65ff729cef18.tar.gz rust-40f4b216ebe79541c0199fe04b4c65ff729cef18.zip | |
Document the difference between Clang's `-darwin` and `-macosx` targets
| -rw-r--r-- | src/doc/rustc/src/platform-support/apple-darwin.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/rustc/src/platform-support/apple-darwin.md b/src/doc/rustc/src/platform-support/apple-darwin.md index c3a7b81f411..17ea225805b 100644 --- a/src/doc/rustc/src/platform-support/apple-darwin.md +++ b/src/doc/rustc/src/platform-support/apple-darwin.md @@ -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 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` environment variable. |
