]> granicus.if.org Git - clang/commit
Add -link-cxx-sanitizer driver flag.
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 8 Aug 2014 22:47:17 +0000 (22:47 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 8 Aug 2014 22:47:17 +0000 (22:47 +0000)
commit63fd633d2a5b0ee6b8be18d70033e7e2b988f0bf
tree3aea91b05756048d64335557d8e8551aa441e34f
parent01ad089bc379bfce98047c6f7be002efa3a40636
Add -link-cxx-sanitizer driver flag.

Summary:
This flag can be used to force linking of CXX-specific parts
of sanitizer runtimes into the final executable. It gives more precise
control than --driver-mode=g++ and comes handy when user links several
object files with sanitized C++ code into an executable, but wants
to provide libstdc++ himself, instead of relying on Clang dirver's
behavior.

Test Plan: clang regression test suite

Reviewers: chandlerc, rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D4824

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215252 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
include/clang/Driver/SanitizerArgs.h
lib/Driver/SanitizerArgs.cpp
lib/Driver/Tools.cpp
test/Driver/sanitizer-ld.c