Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index ae65d4ea9055333042d7e73d4a5aac6d3d6ca1e0..cedd5faeac6ca7d8f0eae8170a7d6c4a4228c79e 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -293,7 +293,7 @@ config("compiler") { |
# Linux-specific compiler flags setup. |
# ------------------------------------ |
- if (is_posix && use_lld) { |
+ if (is_posix && use_lld && !is_nacl) { |
ldflags += [ "-fuse-ld=lld" ] |
} else if (use_gold) { |
ldflags += [ |
@@ -331,7 +331,7 @@ config("compiler") { |
ldflags += [ "-fuse-ld=bfd" ] |
} |
- if (is_posix && (use_gold || use_lld) && !using_sanitizer && |
+ if (is_posix && (use_gold || (use_lld && !is_nacl)) && !using_sanitizer && |
!(is_android && use_order_profiling)) { |
ldflags += [ "-Wl,--icf=all" ] |
} |