aboutsummaryrefslogtreecommitdiff
path: root/clang/docs
diff options
context:
space:
mode:
authorGábor Horváth <xazax.hun@gmail.com>2024-06-16 11:25:25 +0100
committerGitHub <noreply@github.com>2024-06-16 12:25:25 +0200
commitedabb5c12ed9312c3366286a69e881f625102a85 (patch)
treed3d3679d38ca6828561eb88346c1d9f1250d8884 /clang/docs
parent630a6dd687ab4ec2038fc957fc8722c983aa4147 (diff)
downloadllvm-edabb5c12ed9312c3366286a69e881f625102a85.zip
llvm-edabb5c12ed9312c3366286a69e881f625102a85.tar.gz
llvm-edabb5c12ed9312c3366286a69e881f625102a85.tar.bz2
[clang] Clean up macOS version flags (#95374)
The -mmacos-version-min flag is preferred over -mmacosx-version-min. This patch updates the tests and documentation to make this clear and also adds the missing logic to scan build to handle the new flag. Fixes #86376. Co-authored-by: Gabor Horvath <gaborh@apple.com>
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/CommandGuide/clang.rst4
-rw-r--r--clang/docs/LanguageExtensions.rst4
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst
index 6433652..14400c3 100644
--- a/clang/docs/CommandGuide/clang.rst
+++ b/clang/docs/CommandGuide/clang.rst
@@ -362,7 +362,7 @@ number of cross compilers, or may only support a native target.
Specify the architecture to build for (all platforms).
-.. option:: -mmacosx-version-min=<version>
+.. option:: -mmacos-version-min=<version>
When building for macOS, specify the minimum version supported by your
application.
@@ -723,7 +723,7 @@ ENVIRONMENT
.. envvar:: MACOSX_DEPLOYMENT_TARGET
- If :option:`-mmacosx-version-min` is unspecified, the default deployment
+ If :option:`-mmacos-version-min` is unspecified, the default deployment
target is read from this environment variable. This option only affects
Darwin targets.
diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst
index a49e412..92e6025 100644
--- a/clang/docs/LanguageExtensions.rst
+++ b/clang/docs/LanguageExtensions.rst
@@ -2063,7 +2063,7 @@ Objective-C @available
----------------------
It is possible to use the newest SDK but still build a program that can run on
-older versions of macOS and iOS by passing ``-mmacosx-version-min=`` /
+older versions of macOS and iOS by passing ``-mmacos-version-min=`` /
``-miphoneos-version-min=``.
Before LLVM 5.0, when calling a function that exists only in the OS that's
@@ -2084,7 +2084,7 @@ When a method that's introduced in the OS newer than the target OS is called, a
void my_fun(NSSomeClass* var) {
// If fancyNewMethod was added in e.g. macOS 10.12, but the code is
- // built with -mmacosx-version-min=10.11, then this unconditional call
+ // built with -mmacos-version-min=10.11, then this unconditional call
// will emit a -Wunguarded-availability warning:
[var fancyNewMethod];
}