Files
CMake/Help/release/dev/use-linker-depfile.rst
Marc Chevrier 375e6fdbbe Link step: use linker dependency linker file
Based on work done by @ben.boeckel (!8051)

Fixes: #22217
2023-05-03 17:08:07 +02:00

12 lines
484 B
ReStructuredText

use-linker-depfile
------------------
* GNU (and GNU-compatible) linkers gained support for a ``--dependency-file``
flag in GNU Binutils 2.35 and LLVM's LLD 12.0.0. The
:ref:`Makefile <Makefile Generators>` and :ref:`Ninja <Ninja Generators>`
generators will now add these flags so that files read by the linker will
cause a relink if they change (typically modified timestamps).
This feature can be controlled by the variable
:variable:`CMAKE_LINK_DEPENDS_USE_LINKER`.