summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorandresp@webrtc.org <andresp@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-12-20 20:20:50 +0000
committerandresp@webrtc.org <andresp@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-12-20 20:20:50 +0000
commitc9faf10f99da606e2d58b0b4a79c03c232b7c50f (patch)
treeb3b048cf2171ccff17ac8ffe1a80e6bf577c9ec9 /build
parenta9a7327cd1bb55cb05ab28a12e265ffefc1b5da4 (diff)
downloadwebrtc-c9faf10f99da606e2d58b0b4a79c03c232b7c50f.tar.gz
Add thread_annotations for clang targets.
TESTED: As expected clang bots catched a few issues which are fixed with this CL, other bots ignore the annotations and compile fine. R=niklas.enbom@webrtc.org, phoglund@webrtc.org Review URL: https://webrtc-codereview.appspot.com/6209004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5328 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index aab65ea7..b4d6aa15 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -186,6 +186,11 @@
'-Woverloaded-virtual',
],
}],
+ ['clang==1', {
+ 'cflags': [
+ '-Wthread-safety',
+ ],
+ }],
],
}],
['target_arch=="arm" or target_arch=="armv7"', {