Sync Windows build flags between GYP and GN
commit67021f4d70fe838a5d78133bc6d5b305dfd70d72
authorbrettw <brettw@chromium.org>
Tue, 16 Jun 2015 23:20:23 +0000 (16 16:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Jun 2015 23:20:53 +0000 (16 23:20 +0000)
tree9f943ebd2f33affddcd03751d6f8baf9f29c99d8
parentf19538207d2f833192ea7e4ca367da91cdcc7a8b
Sync Windows build flags between GYP and GN

In GN, turn on omtimize:max for base targets on all platforms, not just Android (matches GYP).

In GN, don't duplicate /Os twice, make standard optimize = /O1 (matches GYP). Don't specify redundant optimization flags that are included as part of /O1 or /O2 (doesn't match GYP flag-wise, but should match functionality-wise).

In GN, add a min Windows version of XP to x86 architecture binaries (matches GYP).

In GYP, remove /GT ("EnableFiberSafeOptimizations"). This flag is super old (pre-dates GYP) and was likely turned on because it has the word "optimization" in it. It was only specified in official builds. However, according to the docs, this is making optimizations fiber safe (i.e. slower, by not caching the TLS pointer), rather than enabling optimizations for fibers. We don't use fibers so this flag is unnecessary and may be making TLS access slightly slower.

Review URL: https://codereview.chromium.org/1183613006

Cr-Commit-Position: refs/heads/master@{#334742}
base/BUILD.gn
build/config/compiler/BUILD.gn
build/config/win/BUILD.gn
build/internal/release_impl_official.gypi