[compiler-rt] r358309 - [TSan][libdispatch] Don't link against Foundation

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 13:27:05 PDT 2019


Author: yln
Date: Fri Apr 12 13:27:05 2019
New Revision: 358309

URL: http://llvm.org/viewvc/llvm-project?rev=358309&view=rev
Log:
[TSan][libdispatch] Don't link against Foundation

Now that our tests don't depend on Foundation anymore,
don't link it in.

Modified:
    compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm
    compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm
    compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm
    compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm
    compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm
    compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm

Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm?rev=358309&r1=358308&r2=358309&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm Fri Apr 12 13:27:05 2019
@@ -1,7 +1,9 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clang_tsan %s -o %t
 // RUN: %run %t 2>&1 | FileCheck %s
 
-#import <Foundation/Foundation.h>
+#include <dispatch/dispatch.h>
+
+#include <stdio.h>
 
 long my_global = 0;
 

Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm?rev=358309&r1=358308&r2=358309&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm Fri Apr 12 13:27:05 2019
@@ -1,7 +1,7 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clang_tsan %s -o %t
 // RUN: %deflake %run %t 2>&1 | FileCheck %s
 
-#import <Foundation/Foundation.h>
+#include <dispatch/dispatch.h>
 
 #import "../test.h"
 

Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm?rev=358309&r1=358308&r2=358309&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm Fri Apr 12 13:27:05 2019
@@ -1,7 +1,10 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clang_tsan %s -o %t
 // RUN: %run %t 2>&1 | FileCheck %s
 
-#import <Foundation/Foundation.h>
+#include <dispatch/dispatch.h>
+
+#include <stdio.h>
+#include <stdlib.h>
 
 dispatch_queue_t queue;
 dispatch_data_t data;

Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm?rev=358309&r1=358308&r2=358309&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm Fri Apr 12 13:27:05 2019
@@ -1,7 +1,10 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clang_tsan %s -o %t
 // RUN: %run %t 2>&1 | FileCheck %s
 
-#import <Foundation/Foundation.h>
+#include <dispatch/dispatch.h>
+
+#include <stdio.h>
+#include <stdlib.h>
 
 long my_global = 0;
 

Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm?rev=358309&r1=358308&r2=358309&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm Fri Apr 12 13:27:05 2019
@@ -1,10 +1,8 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clang_tsan %s -o %t
 // RUN: %deflake %run %t 2>&1 | FileCheck %s
 
 // REQUIRES: disabled
 
-#import <Foundation/Foundation.h>
-
 #import "../test.h"
 
 dispatch_queue_t queue;

Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm?rev=358309&r1=358308&r2=358309&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm Fri Apr 12 13:27:05 2019
@@ -1,7 +1,10 @@
-// RUN: %clang_tsan %s -o %t -framework Foundation
+// RUN: %clang_tsan %s -o %t
 // RUN: %run %t 2>&1 | FileCheck %s
 
-#import <Foundation/Foundation.h>
+#include <dispatch/dispatch.h>
+
+#include <stdio.h>
+#include <stdlib.h>
 
 dispatch_queue_t queue;
 dispatch_data_t data;




More information about the llvm-commits mailing list