Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3076)

Unified Diff: build/config/compiler/BUILD.gn

Issue 1896163003: Implement arflags in the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@arflags
Patch Set: merge Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/config/win/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 += [
« no previous file with comments | « no previous file | build/config/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698