]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/configure.ac
Darwin: Check as for .build_version support and use it if available.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 17 Oct 2023 10:10:27 +0000 (11:10 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 18 Oct 2023 09:36:22 +0000 (10:36 +0100)
commita4184c8a65a00eaf8a8d7f92fb8ad2f8621b39e2
treeaae99f8d307b0d18a8fb5ad575d74aad933a638e
parentdd28f90c95378bf8ebb82a3dfdf24a6ad190877a
Darwin: Check as for .build_version support and use it if available.

This adds support for the minimum OS version data in assembler files.
At present, we have no mechanism to detect the SDK version in use, and
so that is omitted from build_versions.

We follow the implementation in clang, '.build_version' is only emitted
(where supported) for target macOS versions >= 10.14.  For earlier macOS
we fall back to using a '.macosx_version_min' directive.  This latter is
also emitted when the assembler supports it, but not build_version.

gcc/ChangeLog:

* config.in: Regenerate.
* config/darwin.cc (darwin_file_start): Add assembler directives
for the target OS version, where these are supported by the
assembler.
(darwin_override_options): Check for building >= macOS 10.14.
* configure: Regenerate.
* configure.ac: Check for assembler support of .build_version
directives.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/config.in
gcc/config/darwin.cc
gcc/configure
gcc/configure.ac