Document the difference between Clang's -darwin and -macosx targets · rust-lang/rust@40f4b21 (original) (raw)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -52,5 +52,10 @@ Cross-compilation of these targets are supported using Clang, but may require
52 52 Xcode or the macOS SDK (`MacOSX.sdk`) to be available to compile C code and
53 53 to link.
54 54
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 +
55 60 The path to the SDK can be passed to `rustc` using the common `SDKROOT`
56 61 environment variable.