Merge "Globally enable libcxx's thread safety annotations."

am: 06ec87082f

Change-Id: I0a08b4f28b3eaf8dc1f8ea08f3dbbc780029f881
This commit is contained in:
Josh Gao
2017-05-04 23:52:53 +00:00
committed by android-build-merger

View File

@@ -105,6 +105,11 @@ func init() {
// Bug: http://b/29823425 Disable -Wnull-dereference until the
// new instances detected by this warning are fixed.
"-Wno-null-dereference",
// Enable clang's thread-safety annotations in libcxx.
// Turn off -Wthread-safety-negative, to avoid breaking projects that use -Weverything.
"-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
"-Wno-thread-safety-negative",
}, " "))
pctx.StaticVariable("ClangExtraTargetCflags", strings.Join([]string{