summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2019-10-08 22:09:51 +0000
committerVitaly Buka <vitalybuka@google.com>2019-10-08 22:09:51 +0000
commitb185f4f2ef7c96095d31e09b041ffe81b4b24571 (patch)
treee853edb69fd2b2065face645827d84385e240866
parentd8c3df27dea12cca769a430033dd5a411f296b1b (diff)
downloadcompiler-rt-b185f4f2ef7c96095d31e09b041ffe81b4b24571.tar.gz
[sanitizer] Fix crypt.cpp on Android again
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@374125 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/sanitizer_common/TestCases/Posix/crypt.cpp6
-rw-r--r--test/sanitizer_common/lit.common.cfg.py3
2 files changed, 3 insertions, 6 deletions
diff --git a/test/sanitizer_common/TestCases/Posix/crypt.cpp b/test/sanitizer_common/TestCases/Posix/crypt.cpp
index ff2626408..7927c6b6a 100644
--- a/test/sanitizer_common/TestCases/Posix/crypt.cpp
+++ b/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/test/sanitizer_common/lit.common.cfg.py b/test/sanitizer_common/lit.common.cfg.py
index e23a8ce0d..26e08ed47 100644
--- a/test/sanitizer_common/lit.common.cfg.py
+++ b/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