Index: build/toolchain/win/BUILD.gn |
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn |
index 2054713be6c5b90c75f3d854bc092ee53dff060b..11f9328c5115541356b71297e8b4152368ef4b4d 100644 |
--- a/build/toolchain/win/BUILD.gn |
+++ b/build/toolchain/win/BUILD.gn |
@@ -2,6 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/sanitizers/sanitizers.gni") |
import("//build/config/win/visual_studio_version.gni") |
import("//build/toolchain/goma.gni") |
import("//build/toolchain/toolchain.gni") |
@@ -24,7 +25,12 @@ if (use_goma) { |
} |
# This value will be inherited in the toolchain below. |
-concurrent_links = exec_script("../get_concurrent_links.py", [], "value") |
+if (is_cfi) { |
+ concurrent_links = |
+ exec_script("../get_concurrent_links.py", [ "--lto" ], "value") |
+} else { |
+ concurrent_links = exec_script("../get_concurrent_links.py", [], "value") |
+} |
# Copy the VS runtime DLL for the default toolchain to the root build directory |
# so things will run. |