Can linker only produce import library (without linking and optimizing the entire DLL)?

  • Thread starter Thread starter Ondrej Dobias
  • Start date Start date
O

Ondrej Dobias

Guest
For performance reasons of build paralellization, we would like to speed up linking process by first producing the import library only. This is because when a DLL project depends on another DLL project, it really only needs its import library to begin linking and the actual DLL depended upon can be linked asynchronously afterwards (it's needed at run-time, not compile-time).

Are there any options to convince linker to produce only the import library first? Got some projects that link several minues due to all optimizations being done. I know I can produce import library from .DEF file easily but we use __declspec(dllexport) instead. Maybe there is an easy way to extract a .DEF file from all static libraries and obj files being supplied to the linker if we can't convince it to produce only the import library?

Continue reading...
 
Back
Top