[compiler-rt] r274989 - test: Use %clangxx in objc++ test files

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 9 14:14:37 PDT 2016


Author: compnerd
Date: Sat Jul  9 16:14:36 2016
New Revision: 274989

URL: http://llvm.org/viewvc/llvm-project?rev=274989&view=rev
Log:
test: Use %clangxx in objc++ test files

These test in this change are objc++, but are built using %clang, not %clangxx.
The reason this works is the driver has been adding -lc++ for sanitizer enabled
builds. By making these tests use %clangxx, they no longer depend on the driver
linking to c++.  Doing so will allow us to prevent overlinking of libc++ for
applications.

Modified:
    compiler-rt/trunk/test/asan/TestCases/Darwin/address-range-limit.mm
    compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm
    compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm
    compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm
    compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
    compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm
    compiler-rt/trunk/test/tsan/Darwin/osatomics-add.mm
    compiler-rt/trunk/test/tsan/Darwin/osatomics-list.mm

Modified: compiler-rt/trunk/test/asan/TestCases/Darwin/address-range-limit.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Darwin/address-range-limit.mm?rev=274989&r1=274988&r2=274989&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Darwin/address-range-limit.mm (original)
+++ compiler-rt/trunk/test/asan/TestCases/Darwin/address-range-limit.mm Sat Jul  9 16:14:36 2016
@@ -1,7 +1,7 @@
 // Regression test for https://code.google.com/p/address-sanitizer/issues/detail?id=368.
 
-// RUN: %clang_asan %s -Wno-deprecated-declarations -flat_namespace -bundle -undefined suppress -o %t.bundle
-// RUN: %clang_asan %s -Wno-deprecated-declarations -o %t -framework Foundation && not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan %s -Wno-deprecated-declarations -flat_namespace -bundle -undefined suppress -o %t.bundle
+// RUN: %clangxx_asan %s -Wno-deprecated-declarations -o %t -framework Foundation && not %run %t 2>&1 | FileCheck %s
 
 #import <Foundation/Foundation.h>
 #import <mach-o/dyld.h>

Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm?rev=274989&r1=274988&r2=274989&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm Sat Jul  9 16:14:36 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clangxx_tsan %s -o %t -framework Foundation
 // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
 
 #import <Foundation/Foundation.h>

Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm?rev=274989&r1=274988&r2=274989&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm Sat Jul  9 16:14:36 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clangxx_tsan %s -o %t -framework Foundation
 // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
 
 #import <Foundation/Foundation.h>

Modified: compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm?rev=274989&r1=274988&r2=274989&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm Sat Jul  9 16:14:36 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clangxx_tsan %s -o %t -framework Foundation
 // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
 
 #import <Foundation/Foundation.h>

Modified: compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm?rev=274989&r1=274988&r2=274989&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm Sat Jul  9 16:14:36 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clangxx_tsan %s -o %t -framework Foundation
 // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
 
 #import <Foundation/Foundation.h>

Modified: compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm?rev=274989&r1=274988&r2=274989&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm Sat Jul  9 16:14:36 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clangxx_tsan %s -o %t -framework Foundation
 // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
 
 #import <Foundation/Foundation.h>

Modified: compiler-rt/trunk/test/tsan/Darwin/osatomics-add.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/osatomics-add.mm?rev=274989&r1=274988&r2=274989&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/osatomics-add.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/osatomics-add.mm Sat Jul  9 16:14:36 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation -std=c++11
+// RUN: %clangxx_tsan %s -o %t -framework Foundation -std=c++11
 // RUN: %run %t 2>&1 | FileCheck %s
 
 #import <Foundation/Foundation.h>

Modified: compiler-rt/trunk/test/tsan/Darwin/osatomics-list.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/osatomics-list.mm?rev=274989&r1=274988&r2=274989&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/osatomics-list.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/osatomics-list.mm Sat Jul  9 16:14:36 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation -std=c++11
+// RUN: %clangxx_tsan %s -o %t -framework Foundation -std=c++11
 // RUN: %run %t 2>&1 | FileCheck %s
 
 #import <Foundation/Foundation.h>




More information about the llvm-commits mailing list