Skip to content

Commit 6636978

Browse files
committed
[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
1 parent bfcbd67 commit 6636978

File tree

6 files changed

+22
-13
lines changed

6 files changed

+22
-13
lines changed

compiler-rt/test/tsan/Darwin/gcd-fd.mm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
// RUN: %clang_tsan %s -o %t -framework Foundation
1+
// RUN: %clang_tsan %s -o %t
22
// RUN: %run %t 2>&1 | FileCheck %s
33

4-
#import <Foundation/Foundation.h>
4+
#include <dispatch/dispatch.h>
5+
6+
#include <stdio.h>
57

68
long my_global = 0;
79

compiler-rt/test/tsan/Darwin/gcd-io-barrier-race.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang_tsan %s -o %t -framework Foundation
1+
// RUN: %clang_tsan %s -o %t
22
// RUN: %deflake %run %t 2>&1 | FileCheck %s
33

4-
#import <Foundation/Foundation.h>
4+
#include <dispatch/dispatch.h>
55

66
#import "../test.h"
77

compiler-rt/test/tsan/Darwin/gcd-io-barrier.mm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
// RUN: %clang_tsan %s -o %t -framework Foundation
1+
// RUN: %clang_tsan %s -o %t
22
// RUN: %run %t 2>&1 | FileCheck %s
33

4-
#import <Foundation/Foundation.h>
4+
#include <dispatch/dispatch.h>
5+
6+
#include <stdio.h>
7+
#include <stdlib.h>
58

69
dispatch_queue_t queue;
710
dispatch_data_t data;

compiler-rt/test/tsan/Darwin/gcd-io-cleanup.mm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
// RUN: %clang_tsan %s -o %t -framework Foundation
1+
// RUN: %clang_tsan %s -o %t
22
// RUN: %run %t 2>&1 | FileCheck %s
33

4-
#import <Foundation/Foundation.h>
4+
#include <dispatch/dispatch.h>
5+
6+
#include <stdio.h>
7+
#include <stdlib.h>
58

69
long my_global = 0;
710

compiler-rt/test/tsan/Darwin/gcd-io-race.mm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// RUN: %clang_tsan %s -o %t -framework Foundation
1+
// RUN: %clang_tsan %s -o %t
22
// RUN: %deflake %run %t 2>&1 | FileCheck %s
33

44
// REQUIRES: disabled
55

6-
#import <Foundation/Foundation.h>
7-
86
#import "../test.h"
97

108
dispatch_queue_t queue;

compiler-rt/test/tsan/Darwin/gcd-io.mm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
// RUN: %clang_tsan %s -o %t -framework Foundation
1+
// RUN: %clang_tsan %s -o %t
22
// RUN: %run %t 2>&1 | FileCheck %s
33

4-
#import <Foundation/Foundation.h>
4+
#include <dispatch/dispatch.h>
5+
6+
#include <stdio.h>
7+
#include <stdlib.h>
58

69
dispatch_queue_t queue;
710
dispatch_data_t data;

0 commit comments

Comments
 (0)