]> granicus.if.org Git - clang/commit
[Driver][PS4] Do not implicitly link against asan or ubsan if -nostdlib or -nodefault...
authorPierre Gousseau <pierregousseau14@gmail.com>
Tue, 18 Dec 2018 17:03:35 +0000 (17:03 +0000)
committerPierre Gousseau <pierregousseau14@gmail.com>
Tue, 18 Dec 2018 17:03:35 +0000 (17:03 +0000)
commita23457455f1a9a9d0a955a3e2dedc476d8ba9f71
tree15979f22834c753654ffad24b49f575a70245176
parent9f23440e30534272b51431c3997db504e7eae860
[Driver][PS4] Do not implicitly link against asan or ubsan if -nostdlib or -nodefaultlibs on PS4.

NFC for targets other than PS4.

Respect -nostdlib and -nodefaultlibs when enabling asan or ubsan.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349508 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
lib/Driver/ToolChains/PS4CPU.cpp
test/Driver/fsanitize.c
test/Driver/sanitizer-ld.c