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

Issue 1183613006: Sync Windows build flags between GYP and GN (Closed)

Created:
5 years, 6 months ago by brettw
Modified:
5 years, 6 months ago
Reviewers:
scottmg
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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. Committed: https://crrev.com/67021f4d70fe838a5d78133bc6d5b305dfd70d72 Cr-Commit-Position: refs/heads/master@{#334742}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -20 lines) Patch
M base/BUILD.gn View 1 4 chunks +4 lines, -4 lines 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 3 4 chunks +13 lines, -13 lines 0 comments Download
M build/config/win/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
M build/internal/release_impl_official.gypi View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 18 (7 generated)
brettw
5 years, 6 months ago (2015-06-16 19:47:34 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183613006/1
5 years, 6 months ago (2015-06-16 19:50:45 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/87497) chromium_presubmit on ...
5 years, 6 months ago (2015-06-16 19:59:24 UTC) #6
scottmg
lgtm https://codereview.chromium.org/1183613006/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1183613006/diff/1/build/config/compiler/BUILD.gn#newcode1099 build/config/compiler/BUILD.gn:1099: "/GF", # Enable string pooling. looks like this ...
5 years, 6 months ago (2015-06-16 20:07:48 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183613006/20001
5 years, 6 months ago (2015-06-16 20:08:25 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/48360) linux_chromium_gn_dbg on ...
5 years, 6 months ago (2015-06-16 20:20:31 UTC) #11
brettw
https://codereview.chromium.org/1183613006/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1183613006/diff/1/build/config/compiler/BUILD.gn#newcode1099 build/config/compiler/BUILD.gn:1099: "/GF", # Enable string pooling. On 2015/06/16 20:07:48, scottmg ...
5 years, 6 months ago (2015-06-16 21:02:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183613006/60001
5 years, 6 months ago (2015-06-16 21:07:54 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-16 23:20:32 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/67021f4d70fe838a5d78133bc6d5b305dfd70d72 Cr-Commit-Position: refs/heads/master@{#334742}
5 years, 6 months ago (2015-06-16 23:21:19 UTC) #17
phoglund_chromium
5 years, 6 months ago (2015-06-17 06:53:02 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1185963004/ by phoglund@chromium.org.

The reason for reverting is: Speculative revert for Linux GN clobber compile
failure:

FAILED: python ../../remoting/webapp/build-webapp.py ...
Traceback (most recent call last):
  File "../../remoting/webapp/build-webapp.py", line 487, in <module>
    sys.exit(main())
  File "../../remoting/webapp/build-webapp.py", line 483, in main
    return buildWebApp(**vars(args))
  File "../../remoting/webapp/build-webapp.py", line 257, in buildWebApp
    + buildtype + ': ' + service_environment)
Exception: Invalid service_environment targeted for Release: 
ninja: build stopped: subcommand failed..

Powered by Google App Engine
This is Rietveld 408576698