Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 9426ef1836ab343f3dd3a69f822e502f91799a60..c6ea8839a08a379ce93460dd93ac60c1f20a1b8f 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -321,6 +321,12 @@ config("compiler") { |
if (is_posix && use_lld && !is_nacl) { |
ldflags += [ "-fuse-ld=lld" ] |
+ |
+ # LLD as of 2016/12/02 seems to behave poorly with multi-threading. |
+ # Disable threads on LLD trunk bots to see if they hurt build time. |
+ if (llvm_force_head_revision) { |
+ ldflags += [ "-Wl,-no-threads" ] |
+ } |
} else if (use_gold) { |
ldflags += [ "-fuse-ld=gold" ] |
if (is_android) { |