diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2019-10-08 22:09:51 +0000 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2019-10-08 22:09:51 +0000 |
| commit | d5f92e345cb6780d01debdcbfe56fe5720d8d50b (patch) | |
| tree | f009a3436c5b49e52522afef0fd9f7eb40b32f02 | |
| parent | 4d69ca8c67c90fcf9f4e7aeeb0d0c48307dd1168 (diff) | |
| download | bcm5719-llvm-d5f92e345cb6780d01debdcbfe56fe5720d8d50b.tar.gz bcm5719-llvm-d5f92e345cb6780d01debdcbfe56fe5720d8d50b.zip | |
[sanitizer] Fix crypt.cpp on Android again
llvm-svn: 374125
| -rw-r--r-- | compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp | 6 | ||||
| -rw-r--r-- | compiler-rt/test/sanitizer_common/lit.common.cfg.py | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp index ff2626408a2..7927c6b6ab4 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp +++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp @@ -1,7 +1,7 @@ -// RUN: %clangxx -O0 -g %s -o %t && %run %t +// RUN: %clangxx -O0 -g %s -o %t -lcrypt && %run %t -// crypt is missing from Android. -// UNSUPPORTED: android +// crypt() is missing from Android and -lcrypt from darwin. +// UNSUPPORTED: android, darwin #include <assert.h> #include <unistd.h> diff --git a/compiler-rt/test/sanitizer_common/lit.common.cfg.py b/compiler-rt/test/sanitizer_common/lit.common.cfg.py index e23a8ce0d3d..26e08ed47aa 100644 --- a/compiler-rt/test/sanitizer_common/lit.common.cfg.py +++ b/compiler-rt/test/sanitizer_common/lit.common.cfg.py @@ -51,9 +51,6 @@ extra_link_flags = [] if config.host_os in ['Linux']: extra_link_flags += ["-ldl"] -if config.host_os in ['Linux', 'NetBSD', 'FreeBSD']: - extra_link_flags += ["-lcrypt"] - clang_cflags = config.debug_info_flags + tool_cflags + [config.target_cflags] clang_cflags += extra_link_flags clang_cxxflags = config.cxx_mode_flags + clang_cflags |

