use-linker-depfile.rst 484 B

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