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

Unified Diff: build/toolchain/gcc_toolchain.gni

Issue 1734043003: Add gn option 'is_lto' to enable Link Time Optimization builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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
Index: build/toolchain/gcc_toolchain.gni
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni
index 0c314bbb0954e82f7e87695e72ea06ce489c6ab9..a6b3add86d6cc360e785b451ff12c94134f4386f 100644
--- a/build/toolchain/gcc_toolchain.gni
+++ b/build/toolchain/gcc_toolchain.gni
@@ -9,7 +9,7 @@ import("//build/toolchain/goma.gni")
import("//build/toolchain/toolchain.gni")
# This value will be inherited in the toolchain below.
-if (is_cfi) {
+if (is_lto) {
concurrent_links =
exec_script("get_concurrent_links.py", [ "--lto" ], "value")
} else {
@@ -217,7 +217,7 @@ template("gcc_toolchain") {
tool("alink") {
rspfile = "{{output}}.rsp"
arflags = ""
- if (is_cfi && invoker.toolchain_os != "nacl") {
+ if (is_lto && invoker.toolchain_os != "nacl") {
gold_plugin_path = rebase_path(
"//third_party/llvm-build/Release+Asserts/lib/LLVMgold.so",
root_build_dir)

Powered by Google App Engine
This is Rietveld 408576698