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

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

Issue 2234693002: win: Add win_linker_timing setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/win/BUILD.gn
diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn
index 90be9952c799d796c16958800bcd5362b2d0a9e5..5e621ba5ccc750310a658e48fbbcb74e37b6e8ce 100644
--- a/build/config/win/BUILD.gn
+++ b/build/config/win/BUILD.gn
@@ -16,6 +16,9 @@ declare_args() {
# warnings, so normally this is done on a build machine and only the new
# warnings are examined.
use_vs_code_analysis = false
+
+ # Turn this on to have the linker output extra timing information.
+ win_linker_timing = false
}
# This is included by reference in the //build/config/compiler config that
@@ -267,13 +270,10 @@ config("common_linker_setup") {
"/maxilksize:0x7ff00000",
]
- # Flags not supported in version 2013.
- if (visual_studio_version != "2013" && visual_studio_version != "2013e") {
- ldflags += [
- # Tell the linker to crash on failures.
- "/fastfail",
- ]
- }
+ ldflags += [
+ # Tell the linker to crash on failures.
+ "/fastfail",
+ ]
# ASLR makes debugging with windbg difficult because Chrome.exe and
# Chrome.dll share the same base name. As result, windbg will name the
@@ -286,6 +286,13 @@ config("common_linker_setup") {
} else {
ldflags += [ "/DYNAMICBASE" ]
}
+
+ if (win_linker_timing) {
+ ldflags += [
+ "/time",
+ "/verbose:incr",
+ ]
+ }
}
# Subsystem --------------------------------------------------------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698