| Index: build/common.gypi
|
| diff --git a/build/common.gypi b/build/common.gypi
|
| index 5806a63ca39c442c671c1bc0f6e91e01776b663c..b03857c150a30864cf88b4e17dd2efc3bb5e2ee2 100644
|
| --- a/build/common.gypi
|
| +++ b/build/common.gypi
|
| @@ -684,10 +684,10 @@
|
| 'host_clang%': 1,
|
|
|
| # Variables to control Link-Time Optimization (LTO).
|
| - # On Android, the variable use_lto enables LTO on code compiled with -Os,
|
| - # and use_lto_o2 enables LTO on code compiled with -O2. On other
|
| - # platforms, use_lto enables LTO in all translation units, and use_lto_o2
|
| - # has no effect.
|
| + # On Android, when using GCC LTO, the variable use_lto enables LTO on code
|
| + # compiled with -Os, and use_lto_o2 enables LTO on code compiled with -O2.
|
| + # On other platforms, use_lto enables LTO in all translation units, and
|
| + # use_lto_o2 has no effect.
|
| #
|
| # On Linux and Android, when using LLVM LTO, the script
|
| # build/download_gold_plugin.py must be run to download a linker plugin.
|
| @@ -696,7 +696,7 @@
|
| # third_party/llvm-build/Release+Asserts/lib must be added to
|
| # $DYLD_LIBRARY_PATH to pick up the right version of the linker plugin.
|
| #
|
| - # On Android, the variables must *not* be enabled at the same time.
|
| + # On Android/GCC, the variables must *not* be enabled at the same time.
|
| # In this case LTO would 'merge' the optimization flags at link-time
|
| # which would lead to all code be optimized with -O2. See crbug.com/407544
|
| 'use_lto%': 0,
|
|
|