Index: third_party/mojo/src/mojo/edk/mojo_edk.gni |
diff --git a/third_party/mojo/src/mojo/edk/mojo_edk.gni b/third_party/mojo/src/mojo/edk/mojo_edk.gni |
index b90462de81bef8b875075de5bd5dc861eaadb9b0..21ad315a96af5baa5633da398007f87e850b57f9 100644 |
--- a/third_party/mojo/src/mojo/edk/mojo_edk.gni |
+++ b/third_party/mojo/src/mojo/edk/mojo_edk.gni |
@@ -95,3 +95,9 @@ template("mojo_edk_source_set") { |
} |
} |
} |
+ |
+# Build EDK things with static thread annotation analysis enabled. |
+# TODO(vtl): Should we set this at a higher level? |
+if (is_clang) { |
+ cflags = [ "-Wthread-safety" ] |
+} |