[PATCH] D35379: Add documentation for @available

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 14 11:53:24 PDT 2017


thakis marked an inline comment as done.
thakis 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=``.
----------------
sdy wrote:
> 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.
Oooh I see. Thanks, fixed in http://llvm.org/viewvc/llvm-project?rev=308048&view=rev


https://reviews.llvm.org/D35379





More information about the cfe-commits mailing list