[sanitizer] Fix crypt.cpp on Android again
authorVitaly Buka <vitalybuka@google.com>
Tue, 8 Oct 2019 22:09:51 +0000 (22:09 +0000)
committerVitaly Buka <vitalybuka@google.com>
Tue, 8 Oct 2019 22:09:51 +0000 (22:09 +0000)
llvm-svn: 374125

compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
compiler-rt/test/sanitizer_common/lit.common.cfg.py

index ff26264..7927c6b 100644 (file)
@@ -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>
index e23a8ce..26e08ed 100644 (file)
@@ -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