[compiler-rt] r285482 - [asan] Set the darwin deployment target for the dead-strip test
Anna Zaks via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 28 17:27:08 PDT 2016
Author: zaks
Date: Fri Oct 28 19:27:07 2016
New Revision: 285482
URL: http://llvm.org/viewvc/llvm-project?rev=285482&view=rev
Log:
[asan] Set the darwin deployment target for the dead-strip test
ASan dead-strip support relies on a linker option that only exists
in 10.11 and later, so the LLVM instrumentation checks for the deployment
target. This test does not pass when clang is built to choose lower
deployment target by default but runs on newer host.
(Note, the REQUIRES: osx-ld64-live_support clause only checks the host
and not the target OS.)
Differential Revision: https://reviews.llvm.org/D26107
Modified:
compiler-rt/trunk/test/asan/TestCases/Darwin/dead-strip.c
Modified: compiler-rt/trunk/test/asan/TestCases/Darwin/dead-strip.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Darwin/dead-strip.c?rev=285482&r1=285481&r2=285482&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Darwin/dead-strip.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/Darwin/dead-strip.c Fri Oct 28 19:27:07 2016
@@ -6,7 +6,7 @@
// runtime is able to register globals in the __DATA,__asan_globals section.
// REQUIRES: osx-ld64-live_support
-// RUN: %clang_asan -mllvm -asan-globals-live-support -Xlinker -dead_strip -o %t %s
+// RUN: %clang_asan -mmacosx-version-min=10.11 -mllvm -asan-globals-live-support -Xlinker -dead_strip -o %t %s
// RUN: llvm-nm -format=posix %t | FileCheck --check-prefix NM-CHECK %s
// RUN: not %run %t 2>&1 | FileCheck --check-prefix ASAN-CHECK %s
More information about the llvm-commits
mailing list