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

Issue 1151303006: clang/win: Make everything work in a GN build. (Closed)

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

Description

clang/win: Make everything work in a GN build. Do this by removing the default_warnings config, moving the flags in there to a variable, and use it in both the chromium_code and no_chromium_code configs. If a target does configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ] this would add no_chromium_code to the end of configs previously, and the -Wno-foo flags in default_warnings would be passed before the /W3 flag in no_chromium_code (and /W3 would then override some of the -Wno-foo flags). By moving the flags into no_chromium_code, they're guaranteed to appear after /W3 (and after -Wall on POSIX). See also thread "configs and warning cflag ordering" on gn-dev: https://groups.google.com/a/chromium.org/forum/#!topic/gn-dev/qkqdlwtcQW4 In a similar vein, move a -Wno-foo flag in skia/BUILD.gn into a config, to make sure it appears at the end of the compile command. While here, also remove /wd4267 from skia's BUILD.gn, it's already passed globally (this part doesn't change behavior). (clang-cl working with gn also needs an ffmpeg roll to pick up https://chromium.googlesource.com/chromium/third_party/ffmpeg/+/5eb7926d25142b65d77be3706ff8bd8116a9d150 This is blocked on http://crbug.com/496975) BUG=491209 CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg Committed: https://crrev.com/0bfa8a8a759697b140ef2a18f058513ec8485a57 Cr-Commit-Position: refs/heads/master@{#333380}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : cl #

Patch Set 4 : rebase #

Patch Set 5 : no default_warnings config #

Patch Set 6 : nacl fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -253 lines) Patch
M build/config/BUILDCONFIG.gn View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 3 4 5 4 chunks +244 lines, -242 lines 0 comments Download
M third_party/mesa/BUILD.gn View 6 chunks +19 lines, -8 lines 0 comments Download
M tools/gn/docs/cookbook.md View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Nico
5 years, 6 months ago (2015-06-08 19:44:31 UTC) #2
Nico
Please hold off for a bit, this doesn't seem to build yet
5 years, 6 months ago (2015-06-08 19:48:50 UTC) #3
Nico
Ok, please take a look at patch set 6.
5 years, 6 months ago (2015-06-08 19:57:41 UTC) #4
brettw
lgtm
5 years, 6 months ago (2015-06-08 20:53:03 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151303006/100001
5 years, 6 months ago (2015-06-08 20:59:37 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_gn_rel on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_gn_rel/builds/7423)
5 years, 6 months ago (2015-06-08 21:19:16 UTC) #9
Nico
Heh, that's broken on the main waterfall too: http://build.chromium.org/p/chromium.win/builders/Win%20x64%20GN/builds/2512/steps/compile/logs/stdio :-/ On Mon, Jun 8, 2015 ...
5 years, 6 months ago (2015-06-08 21:32:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151303006/100001
5 years, 6 months ago (2015-06-08 21:53:35 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 6 months ago (2015-06-08 23:14:28 UTC) #13
commit-bot: I haz the power
5 years, 6 months ago (2015-06-08 23:15:34 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0bfa8a8a759697b140ef2a18f058513ec8485a57
Cr-Commit-Position: refs/heads/master@{#333380}

Powered by Google App Engine
This is Rietveld 408576698