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

Issue 1957523005: clang/win/gn: Actually build 32-bit .obj files in 32-bit builds. (Closed)

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

Description

clang/win/gn: Actually build 32-bit .obj files in 32-bit builds. In clang builds, we use the same compiler binary for 32-bit and 64-bit builds, so we need to tell that binary if it should produce 32-bit or 64-bit object files. The //build/config/compiler:compiler config takes care of adding -m32 and -m64 flags, but the mini_installer target removed that config, removing these flags (and other important compiler flags such as -fmsc-version). It looks like removing this config isn't really necessary -- the only compiler flag that mini_installer wants to change is /GS-, to disable buffer security checks. I first thought I'd move /GS into its own config so that mini_installer can remove it, but it turns out /GS is on by default. So don't pass /GS in :compiler, and do pass /GS- in mini_installer. No target should remove //build/config/compiler:compiler from its configs. BUG=498033 Committed: https://crrev.com/7170da48a964aa08a16fbf03ce17dbd78b596500 Cr-Commit-Position: refs/heads/master@{#392175}

Patch Set 1 #

Total comments: 3

Patch Set 2 : different #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -15 lines) Patch
M build/config/win/BUILD.gn View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/installer/mini_installer/BUILD.gn View 1 3 chunks +2 lines, -11 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
Nico
4 years, 7 months ago (2016-05-06 14:57:04 UTC) #2
hans
lgtm
4 years, 7 months ago (2016-05-06 15:05:30 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957523005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957523005/1
4 years, 7 months ago (2016-05-06 15:48:12 UTC) #5
Dirk Pranke
https://codereview.chromium.org/1957523005/diff/1/build/toolchain/win/BUILD.gn File build/toolchain/win/BUILD.gn (right): https://codereview.chromium.org/1957523005/diff/1/build/toolchain/win/BUILD.gn#newcode285 build/toolchain/win/BUILD.gn:285: cl = "${goma_prefix}$prefix/${clang_cl} -m32" Shouldn't this already be being ...
4 years, 7 months ago (2016-05-06 15:53:59 UTC) #7
Nico
https://codereview.chromium.org/1957523005/diff/1/build/toolchain/win/BUILD.gn File build/toolchain/win/BUILD.gn (right): https://codereview.chromium.org/1957523005/diff/1/build/toolchain/win/BUILD.gn#newcode285 build/toolchain/win/BUILD.gn:285: cl = "${goma_prefix}$prefix/${clang_cl} -m32" On 2016/05/06 15:53:58, Dirk Pranke ...
4 years, 7 months ago (2016-05-06 16:21:33 UTC) #9
Nico
(+brettw who added the only place where a target removes the compiler:compiler config) https://codereview.chromium.org/1957523005/diff/1/build/toolchain/win/BUILD.gn File ...
4 years, 7 months ago (2016-05-06 20:10:21 UTC) #11
Nico
From what I understand, mini_installer does this because it wants to build without /GS. I ...
4 years, 7 months ago (2016-05-06 20:16:23 UTC) #12
Nico
Ok, I rewrote this. See patch set 2, and the update CL description. I believe ...
4 years, 7 months ago (2016-05-06 20:34:31 UTC) #14
Dirk Pranke
so this is on by default w/ clang-cl, too? lgtm.
4 years, 7 months ago (2016-05-06 21:11:50 UTC) #15
Nico
On 2016/05/06 21:11:50, Dirk Pranke wrote: > so this is on by default w/ clang-cl, ...
4 years, 7 months ago (2016-05-06 21:13:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957523005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957523005/20001
4 years, 7 months ago (2016-05-06 21:14:08 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-06 22:12:12 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 22:15:05 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7170da48a964aa08a16fbf03ce17dbd78b596500
Cr-Commit-Position: refs/heads/master@{#392175}

Powered by Google App Engine
This is Rietveld 408576698