]> granicus.if.org Git - clang/commit
[windows] [asan] Add wholearchive flag when including asan_cxx lib.
authorMarcos Pividori <mpividori@google.com>
Thu, 9 Feb 2017 18:22:35 +0000 (18:22 +0000)
committerMarcos Pividori <mpividori@google.com>
Thu, 9 Feb 2017 18:22:35 +0000 (18:22 +0000)
commitbe365f65836dd3e136cd4157d6ce49cabd0a3447
treeef7242e4746db8086d19f3449899c1629614addd
parent5808201fb358e2bf282226490e74eb74b867aee8
[windows] [asan] Add wholearchive flag when including asan_cxx lib.

We need -wholearchive for asan_cxx, the same than for asan.
Clang Driver will add asan_cxx at the beginning of the arg list that we pass to
the linker. To ensure that all the static libraries are linked to asan_cxx, we
force the linker to include the object files in asan_cxx.

This fixes some linker errors when compiling with address sanitizer for MT and
passing the static library libFuzzer.

Differential Revision: https://reviews.llvm.org/D29754

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294604 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp