Skip to content

Commit 03c4119

Browse files
committed
[gn build] hook up tsan on macOS too
Mostly just works already.
1 parent 817d98d commit 03c4119

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ group("lib") {
33
"//compiler-rt/lib/asan",
44
"//compiler-rt/lib/builtins",
55
"//compiler-rt/lib/profile",
6+
"//compiler-rt/lib/tsan" ,
67
]
7-
if (target_os == "linux") {
8-
# FIXME: Make work on macOS.
9-
deps += [ "//compiler-rt/lib/tsan" ]
10-
}
118
}

llvm/utils/gn/secondary/compiler-rt/lib/tsan/BUILD.gn

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,7 @@ target(tsan_target_type, "tsan") {
145145
ldflags = [
146146
"-lc++",
147147
"-lc++abi",
148-
149-
# tsan
150-
# FIXME
151-
152-
# ubsan
153-
"-Wl,-U,___ubsan_default_options",
148+
"-lobjc",
154149

155150
# sanitizer_common
156151
"-Wl,-U,___sanitizer_free_hook",

0 commit comments

Comments
 (0)