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

Issue 4638003: Add gxx_version (Closed)

Created:
10 years, 1 month ago by pipping.elias
Modified:
9 years, 7 months ago
Reviewers:
Craig, Evan Martin
Visibility:
Public.

Description

The status quo is this: build/compiler_version.py detects the version of the c++ compiler, which is assumed to be g++. That version then becomes gcc_version in gyp. gcc_version is used for CFLAGS and CXXFLAGS Nothing keeps me from using gcc-4.4 for CC and g++-4.5 for CXX, though (let alone clang). I think splitting that up into two variables, one for c++ and one for c would benefit clarity while introducing minimal overhead. I've attached a patch that changes checks for gcc_version that are actually checks for the version of g++ into gxx_version plus everything that's required for that to work. This patch is against the chromium-9.0.570.0 tarball. BUG=62207 and TEST="manual"

Patch Set 1 #

Patch Set 2 : Use g++ rather than gxx in comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -53 lines) Patch
A build/cc_compiler_version.py View 1 chunk +50 lines, -0 lines 0 comments Download
M build/common.gypi View 1 1 chunk +4 lines, -1 line 0 comments Download
D build/compiler_version.py View 1 chunk +0 lines, -50 lines 0 comments Download
A build/cxx_compiler_version.py View 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Evan Martin
Why would you want to mix different versions of the same compiler? I am confused ...
10 years, 1 month ago (2010-11-08 17:56:05 UTC) #1
pipping.elias
This isn't really about a reasonable scenario. It's only the tip of the iceberg. Even ...
10 years, 1 month ago (2010-11-08 23:07:44 UTC) #2
Evan Martin
On 2010/11/08 23:07:44, pipping.elias wrote: > What is a reasonable combination is e.g. CC=clang-2.8 CXX=g++-4.4. ...
10 years, 1 month ago (2010-11-08 23:24:06 UTC) #3
Evan Martin
On 2010/11/08 23:24:06, Evan Martin wrote: > Currently we have no case where we need ...
10 years, 1 month ago (2010-11-08 23:24:55 UTC) #4
pipping.elias
On 2010/11/08 23:24:06, Evan Martin wrote: > Currently we have no case where we need ...
10 years, 1 month ago (2010-11-08 23:29:12 UTC) #5
pipping.elias
On 2010/11/08 23:24:55, Evan Martin wrote: > And compile-time flags are applied a target at ...
10 years, 1 month ago (2010-11-08 23:34:39 UTC) #6
pipping.elias
On 2010/11/08 23:24:06, Evan Martin wrote: > The two accept different e.g. warning flags, so ...
10 years, 1 month ago (2010-11-08 23:49:28 UTC) #7
Craig
On 2010/11/08 23:29:12, pipping.elias wrote: > On 2010/11/08 23:24:06, Evan Martin wrote: > > Currently ...
10 years, 1 month ago (2010-11-09 17:28:39 UTC) #8
pipping.elias
On 2010/11/09 17:28:39, Craig wrote: > On 2010/11/08 23:29:12, pipping.elias wrote: > > On 2010/11/08 ...
10 years, 1 month ago (2010-11-09 20:47:23 UTC) #9
Craig
10 years, 1 month ago (2010-11-10 04:43:51 UTC) #10
On 2010/11/09 20:47:23, pipping.elias wrote:
> Thanks for the discussion. Please reject this patch.

I'll close it for you (edit issue/tick close). I'll close the bug too.

Powered by Google App Engine
This is Rietveld 408576698