[compiler-rt] r326143 - Fix which Darwin versions have ObjC runtime with full subscripting support.

Volodymyr Sapsai via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 15:04:58 PST 2018


Author: vsapsai
Date: Mon Feb 26 15:04:57 2018
New Revision: 326143

URL: http://llvm.org/viewvc/llvm-project?rev=326143&view=rev
Log:
Fix which Darwin versions have ObjC runtime with full subscripting support.

Update min deployment target in some tests so that they don't try
to link against libarclite and don't fail when it's not available.

rdar://problem/29253617

Reviewers: vsk, kubamracek

Reviewed By: vsk

Subscribers: jkorous-apple, cfe-commits

Differential Revision: https://reviews.llvm.org/D43787


Modified:
    compiler-rt/trunk/test/lit.common.cfg
    compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm

Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=326143&r1=326142&r2=326143&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Mon Feb 26 15:04:57 2018
@@ -201,8 +201,14 @@ if config.host_os == 'Darwin':
     pass
 
   config.substitutions.append( ("%macos_min_target_10_11", "-mmacosx-version-min=10.11") )
+
+  isIOS = getattr(config, 'ios', False)
+  # rdar://problem/22207160
+  config.substitutions.append( ("%darwin_min_target_with_full_runtime_arc_support",
+      "-miphoneos-version-min=9.0" if isIOS else "-mmacosx-version-min=10.11") )
 else:
   config.substitutions.append( ("%macos_min_target_10_11", "") )
+  config.substitutions.append( ("%darwin_min_target_with_full_runtime_arc_support", "") )
 
 if config.android:
   adb = os.environ.get('ADB', 'adb')

Modified: compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm?rev=326143&r1=326142&r2=326143&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm Mon Feb 26 15:04:57 2018
@@ -1,4 +1,4 @@
-// RUN: %clang_tsan %s -lc++ -fobjc-arc -lobjc -o %t -framework Foundation
+// RUN: %clang_tsan %s -lc++ -fobjc-arc -lobjc -o %t -framework Foundation %darwin_min_target_with_full_runtime_arc_support
 // RUN: %run %t 2>&1 | FileCheck %s
 
 // Check that we do not report races between:




More information about the llvm-commits mailing list