Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 07408d69c64d67f4159ae5b371295b97150f43a4..23ad66c0f6a482c311f41501e29817e40a69c737 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -431,6 +431,12 @@ config("compiler") { |
ldflags += [ "-Wl,-plugin-opt,-function-sections" ] |
} |
+ arflags = [ |
+ "--plugin", |
+ rebase_path("//third_party/llvm-build/Release+Asserts/lib/LLVMgold.so", |
+ root_build_dir), |
+ ] |
+ |
# TODO(pcc): Make these flags work correctly with CFI. |
if (!is_cfi) { |
cflags += [ |