Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I merge multiple PDB files?
    primarykey
    data
    text
    <p>We are currently using a single command line tool to build our product on both Windows and Linux.</p> <p>Si far its works nicely, allowing us to build out of source and with finer dependencies than what any of our previous build system allowed. This buys us great incremental and parallel build capabilities.</p> <p>To describe shortly the build process, we get the usual:</p> <pre><code>.cpp -- cl.exe --&gt; .obj and .pdb multiple .obj and .pdb -- cl.exe --&gt; single .dll .lib .pdb multiple .obj and .pdb -- cl.exe --&gt; single .exe .pdb </code></pre> <p>The msvc C/C++ compiler supports it adequately.</p> <p>Recently the need to build a few static libraries emerged. From what we gathered, the process to build a static library is:</p> <pre><code>multiple .cpp -- cl.exe --&gt; multiple .obj and a single .pdb multiple .obj -- lib.exe --&gt; a single .lib </code></pre> <p>The single .pdb means that <code>cl.exe</code> should only be executed once for all the .cpp sources. This single execution means that we can't parallelize the build for this static library. This is really unfortunate.</p> <p>We investigated a bit further and according to the documentation (and the available command line options):</p> <ul> <li><code>cl.exe</code> does not know how to build static libraries</li> <li><code>lib.exe</code> does not know how to build .pdb files</li> </ul> <p>Does anybody know a way to merge multiple PDB files ? Are we doomed to have slow builds for static libraries ? How do tools like Incredibuild work around this issue ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload