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

Issue 2379573003: [Windows] Pass "/MD" and variants outside the "runtime_library" target (Closed)

Created:
4 years, 2 months ago by Raphael Kubo da Costa (rakuco)
Modified:
4 years, 2 months ago
Reviewers:
Dirk Pranke, brettw, scottmg
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create separate configurations for passing "/MD", "/MT" and their debug variants: "dynamic_crt" passes "/MD" and "/MDd", whereas "static_crt" passes "/MT" and "/MTd". BUILDCONFIG then depends on "default_crt", which has some logic to choose whether to use either dynamic_crt or static_crt. The main reason behind this is to allow users to config -= the "default_crt" config: in gyp, it was possible to configure what was going to be passed to the compiler via the "win_{release,debug}_RuntimeLibrary" variable, which was useful when building code that needs to pass "/CLR", as it requires "/MD" and does not work with "/MT". R=brettw@chromium.org,dpranke@chromium.org,scottmg@chromium.org Committed: https://crrev.com/964b1666ed2178c3f9242ef140ed16c94df24edd Cr-Commit-Position: refs/heads/master@{#421596}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Patch v2 #

Patch Set 3 : Fix assignments #

Total comments: 1

Patch Set 4 : Fix another brainfart #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -27 lines) Patch
M build/config/BUILDCONFIG.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M build/config/win/BUILD.gn View 1 2 3 2 chunks +38 lines, -27 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
Raphael Kubo da Costa (rakuco)
PTAL
4 years, 2 months ago (2016-09-28 16:42:30 UTC) #1
brettw
https://codereview.chromium.org/2379573003/diff/1/build/config/win/BUILD.gn File build/config/win/BUILD.gn (right): https://codereview.chromium.org/2379573003/diff/1/build/config/win/BUILD.gn#newcode201 build/config/win/BUILD.gn:201: config("crt") { If we're going to be changing this, ...
4 years, 2 months ago (2016-09-28 17:22:02 UTC) #2
Raphael Kubo da Costa (rakuco)
Patch v2 is up adapting to your suggestion (I've also updated the CL message). I ...
4 years, 2 months ago (2016-09-28 17:52:33 UTC) #3
Dirk Pranke
lgtm
4 years, 2 months ago (2016-09-28 17:53:21 UTC) #5
brettw
https://codereview.chromium.org/2379573003/diff/40001/build/config/win/BUILD.gn File build/config/win/BUILD.gn (right): https://codereview.chromium.org/2379573003/diff/40001/build/config/win/BUILD.gn#newcode277 build/config/win/BUILD.gn:277: config = [ ":dynamic_crt" ] Does this work? These ...
4 years, 2 months ago (2016-09-28 18:03:54 UTC) #6
Raphael Kubo da Costa (rakuco)
On 2016/09/28 18:03:54, brettw (ping on IM after 24h) wrote: > https://codereview.chromium.org/2379573003/diff/40001/build/config/win/BUILD.gn > File build/config/win/BUILD.gn ...
4 years, 2 months ago (2016-09-28 18:11:10 UTC) #7
brettw
lgtm
4 years, 2 months ago (2016-09-28 18:16:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2379573003/60001
4 years, 2 months ago (2016-09-28 18:23:35 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-28 19:14:42 UTC) #13
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 19:16:17 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/964b1666ed2178c3f9242ef140ed16c94df24edd
Cr-Commit-Position: refs/heads/master@{#421596}

Powered by Google App Engine
This is Rietveld 408576698