Why not just make it delay load dll instead of all the LoadLibrary stuff?<br><div class="gmail_quote">On Fri, Jun 26, 2015 at 00:07 Leny Kholodov <<a href="mailto:leny.kholodov@gmail.com">leny.kholodov@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bigcheese, rnk, zturner,<br>
<br>
This patch changes linkage with dbghlp.dll for clang from static (at load time) to on demand (at the first use of required functions). Clang uses dbghlp.dll only in minor use-cases. First of all in case of crash and in case of plugin load. The dbghlp.dll library can be absent on system. In this case clang will fail to load. With lazy load of dbghlp.dll clang can work even if dbghlp.dll is not available.<br>
<br>
REPOSITORY<br>
  rL LLVM<br>
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D10737&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=BSqEv9KvKMW_Ob8SyngJ70KdZISM_ASROnREeq0cCxk&m=FeJlC4VsDaTu6CDIy-eaGWWgJg-M04lPGpPjRW6By3k&s=IiqfXkztK9sNeiLG5bJrMH57aYIz2QHzvNSwIjPTsio&e=" rel="noreferrer" target="_blank">http://reviews.llvm.org/D10737</a><br>
<br>
Files:<br>
  lib/Support/CMakeLists.txt<br>
  lib/Support/Windows/DynamicLibrary.inc<br>
  lib/Support/Windows/Signals.inc<br>
  tools/llvm-symbolizer/LLVMSymbolize.cpp<br>
<br>
EMAIL PREFERENCES<br>
  <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_settings_panel_emailpreferences_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=BSqEv9KvKMW_Ob8SyngJ70KdZISM_ASROnREeq0cCxk&m=FeJlC4VsDaTu6CDIy-eaGWWgJg-M04lPGpPjRW6By3k&s=InKBQdD4Q_lnFIVD_0Bvjp8cdd_RcklRHgaqcL7aLp4&e=" rel="noreferrer" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
</blockquote></div>