]> git.ipfire.org Git - thirdparty/gcc.git/commit
Darwin: Use -platform_version when available [PR110624].
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 13 Jul 2023 06:36:51 +0000 (07:36 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 4 Apr 2024 18:50:02 +0000 (19:50 +0100)
commita17f5a03e93d2cc6fd40cef6ab3930ba019f804a
tree35bd819eb8854e9d18d24901d0affcc21ad07172
parent5a72912f9b0a5aa3c5a726ec499137c189921f9b
Darwin: Use -platform_version when available [PR110624].

Later versions of the static linker support a more flexible flag to
describe the OS, OS version and SDK used to build the code.  This
replaces the functionality of '-mmacosx_version_min' (which is now
deprecated, leading to the diagnostic described in the PR).

We now use the platform_version flag when available which avoids the
diagnostic.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
PR target/110624

gcc/ChangeLog:

* config/darwin.h (DARWIN_PLATFORM_ID): New.
(LINK_COMMAND_A): Use DARWIN_PLATFORM_ID to pass OS, OS version
and SDK data to the static linker.

(cherry picked from commit 032b5da1fc781bd3c23d9caa72fb09439e7f6f3a)
gcc/config/darwin.h