[PATCH] Driver: add support for linking the UBSan runtime library on Windows.

Peter Collingbourne peter at pcc.me.uk
Tue Jun 30 23:01:20 PDT 2015


Hi samsonov,

On Windows the user may invoke the linker directly, so we might not have an
opportunity to add runtime library flags to the linker command line. Instead,
instruct the code generator to embed linker directive in the object file
that cause the required runtime libraries to be linked.

We might also want to do something similar for ASan, but it seems to have
its own special complexities which may make this infeasible.

http://reviews.llvm.org/D10862

Files:
  include/clang/Driver/SanitizerArgs.h
  lib/Driver/SanitizerArgs.cpp
  lib/Driver/Tools.cpp
  lib/Driver/Tools.h
  test/Driver/cl-link.c
  test/Driver/fsanitize.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10862.28847.patch
Type: text/x-patch
Size: 7896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150701/350f9316/attachment.bin>


More information about the cfe-commits mailing list