summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-04-12 20:27:05 +0000
committerJulian Lettner <jlettner@apple.com>2019-04-12 20:27:05 +0000
commit6636978243419a98cc26555b6ad721ca51733e86 (patch)
tree71238e3dad7ee466f35217647476fe75ce0a05f0
parentbfcbd677c8b8ce5a321490eeb2b017f9297c4c0a (diff)
downloadbcm5719-llvm-6636978243419a98cc26555b6ad721ca51733e86.tar.gz
bcm5719-llvm-6636978243419a98cc26555b6ad721ca51733e86.zip
[TSan][libdispatch] Don't link against Foundation
Now that our tests don't depend on Foundation anymore, don't link it in. llvm-svn: 358309
-rw-r--r--compiler-rt/test/tsan/Darwin/gcd-fd.mm6
-rw-r--r--compiler-rt/test/tsan/Darwin/gcd-io-barrier-race.mm4
-rw-r--r--compiler-rt/test/tsan/Darwin/gcd-io-barrier.mm7
-rw-r--r--compiler-rt/test/tsan/Darwin/gcd-io-cleanup.mm7
-rw-r--r--compiler-rt/test/tsan/Darwin/gcd-io-race.mm4
-rw-r--r--compiler-rt/test/tsan/Darwin/gcd-io.mm7
6 files changed, 22 insertions, 13 deletions
diff --git a/compiler-rt/test/tsan/Darwin/gcd-fd.mm b/compiler-rt/test/tsan/Darwin/gcd-fd.mm
index 1a67358ed8d..9a77a3f3c82 100644
--- a/compiler-rt/test/tsan/Darwin/gcd-fd.mm
+++ b/compiler-rt/test/tsan/Darwin/gcd-fd.mm
@@ -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;
diff --git a/compiler-rt/test/tsan/Darwin/gcd-io-barrier-race.mm b/compiler-rt/test/tsan/Darwin/gcd-io-barrier-race.mm
index c8e019e4198..150f4037fe6 100644
--- a/compiler-rt/test/tsan/Darwin/gcd-io-barrier-race.mm
+++ b/compiler-rt/test/tsan/Darwin/gcd-io-barrier-race.mm
@@ -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"
diff --git a/compiler-rt/test/tsan/Darwin/gcd-io-barrier.mm b/compiler-rt/test/tsan/Darwin/gcd-io-barrier.mm
index b7c55e90cab..849644e44ef 100644
--- a/compiler-rt/test/tsan/Darwin/gcd-io-barrier.mm
+++ b/compiler-rt/test/tsan/Darwin/gcd-io-barrier.mm
@@ -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;
diff --git a/compiler-rt/test/tsan/Darwin/gcd-io-cleanup.mm b/compiler-rt/test/tsan/Darwin/gcd-io-cleanup.mm
index 03d1160f9f7..3e1c9d78e9c 100644
--- a/compiler-rt/test/tsan/Darwin/gcd-io-cleanup.mm
+++ b/compiler-rt/test/tsan/Darwin/gcd-io-cleanup.mm
@@ -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;
diff --git a/compiler-rt/test/tsan/Darwin/gcd-io-race.mm b/compiler-rt/test/tsan/Darwin/gcd-io-race.mm
index 482d9874500..7d7f603856d 100644
--- a/compiler-rt/test/tsan/Darwin/gcd-io-race.mm
+++ b/compiler-rt/test/tsan/Darwin/gcd-io-race.mm
@@ -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;
diff --git a/compiler-rt/test/tsan/Darwin/gcd-io.mm b/compiler-rt/test/tsan/Darwin/gcd-io.mm
index 60ed8a9f271..6302e743d88 100644
--- a/compiler-rt/test/tsan/Darwin/gcd-io.mm
+++ b/compiler-rt/test/tsan/Darwin/gcd-io.mm
@@ -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;
OpenPOWER on IntegriCloud