diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2018-06-26 16:14:35 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2018-06-26 16:14:35 +0000 |
commit | 1969c9a13edf7e2d4003bbed38426dd3a8e1e476 (patch) | |
tree | 33c8634b16ce4176b527aad1784ec8e46e783981 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | 0f44759b0d35b0b9927198e9ee9150c8eaea0efb (diff) | |
download | bcm5719-llvm-1969c9a13edf7e2d4003bbed38426dd3a8e1e476.tar.gz bcm5719-llvm-1969c9a13edf7e2d4003bbed38426dd3a8e1e476.zip |
[Driver] Do not add -lpthread & -lrt with -static-libsan on Android
Summary:
I am not sure anyone has tried to compile an application with sanitizers on
Android with `-static-libsan`, and a recent NDK, but it fails with:
```
.../i686-linux-android/bin/ld.gold: error: cannot find -lpthread
.../i686-linux-android/bin/ld.gold: error: cannot find -lrt
```
My understanding is that both are included in Bionic and as such are not needed,
and actually error out.
So remove the addition of those two in `linkSanitizerRuntimeDeps` when dealing
with Android, and update the tests.
I am unfamiliar with the evolution of the NDK and I am not sure if this has
always been the case or if this is somewhat of a recent evolution. I'll let
Android people chime in.
Reviewers: eugenis, pirama, srhines
Reviewed By: eugenis, srhines
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D48570
llvm-svn: 335620
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions