[PATCH] D35379: Add documentation for @available

Sidney San Martín via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 14 11:46:23 PDT 2017


sdy added inline comments.


================
Comment at: docs/LanguageExtensions.rst:1278
+It is possible use the newest SDK but still build a program that can run on
+older macOS and iOS versions, by passing ``-mmacosx-version-info=`` /
+``--miphoneos-version-min=``.
----------------
thakis wrote:
> sdy wrote:
> > arphaman wrote:
> > > Nit: older versions of macOS or iOS
> > I thought this flag was `--mmacosx-version-min`?
> > Nit: I would remove the comma after "versions".
> Nicos-MacBook-Pro:llvm-build thakis$ bin/clang -mmacosx-version-min=10.11 -c test.mm
> Nicos-MacBook-Pro:llvm-build thakis$ bin/clang --mmacosx-version-min=10.11 -c test.mm
> clang-3.5: error: unsupported option '--mmacosx-version-min=10.11'
> 
> Removed comma.
Sorry, I added an extra dash in the comment. I meant that the CL says mmacosx-version-**info**, not min.


https://reviews.llvm.org/D35379





More information about the cfe-commits mailing list