[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22843] Provide dependency information from the linker similar to
From: |
jpakkane at gmail dot com |
Subject: |
[Bug ld/22843] Provide dependency information from the linker similar to the compiler |
Date: |
Tue, 20 Feb 2018 21:22:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22843
--- Comment #2 from jpakkane at gmail dot com ---
The point of this request is to integrate the linker's dependency list with
Make and Ninja. The way the workflow would go (and already does for compilers)
is the following:
- the linker gets invoked with a flag to write the dep file
- it gets written to libresult.so.d (or somesuch)
- _immediately_ after the process has finished, Make or Ninja loads the
contents of the file and stores it in their internal data storage
- in case of Ninja, it immediately deletes the .d file after it has read it,
this makes a big performance difference on Windows
As can be seen, getting the dependency info in the correct format is necessary,
because it is immediately consumed. Needing to do a conversion means that
everyone who wants to use this feature needs to wrap all linker invocations in
a custom script.
--
You are receiving this mail because:
You are on the CC list for the bug.