[PATCH] D38525: Cleanup and generalize -shared-libasan.

Evgenii Stepanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 3 17:53:33 PDT 2017


eugenis created this revision.
Herald added a subscriber: srhines.

- Add -static-libasan for targets that default to shared.
- Remove an Android special case. It is now possible (but untested) to use static compiler-rt libraries there.
- Support libclang_rt.ubsan_standalone as a shared library.

Unlike GCC, this change applies -shared-libasan / -static-libasan to all sanitizers.
I don't see a point in multiple flags like -shared-libubsan, considering that most sanitizers
are not compatible with each other, and each link has basically a single shared/static choice.


https://reviews.llvm.org/D38525

Files:
  clang/include/clang/Driver/Options.td
  clang/include/clang/Driver/SanitizerArgs.h
  clang/lib/Driver/SanitizerArgs.cpp
  clang/lib/Driver/ToolChains/CommonArgs.cpp
  clang/lib/Driver/ToolChains/Fuchsia.cpp
  clang/lib/Driver/ToolChains/MSVC.cpp
  clang/test/Driver/sanitizer-ld.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38525.117614.patch
Type: text/x-patch
Size: 9696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171004/db5224d7/attachment.bin>


More information about the cfe-commits mailing list