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

Issue 10918045: Fix Clang build on Android. (Closed)

Created:
8 years, 3 months ago by Philippe
Modified:
8 years, 3 months ago
CC:
chromium-reviews, peter+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org, Isaac (away)
Visibility:
Public.

Description

Fix Clang build on Android. This is part of Chrome for Android upstreaming. In case we are doing a Clang build, we have to unset CC_target and CXX_target (if they are gcc-related). Otherwise GYP ends up generating a gcc build (although we set 'clang' to 1 in $GYP_DEFINES). This behavior was introduced by 54d2f6fe6d8a7b9d9786bd1f8540df6b4f46b83f in GYP. BUG=143889 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155185

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address Hans' comment #

Patch Set 3 : Handle case where clang= appears multiple times #

Patch Set 4 : Address David's (offline) comment #

Total comments: 2

Patch Set 5 : Address Sam's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M build/android/envsetup.sh View 1 2 3 4 1 chunk +10 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Philippe
8 years, 3 months ago (2012-09-03 12:51:26 UTC) #1
Philippe
Sam, feel free to suggest a better approach if there is one. This was a ...
8 years, 3 months ago (2012-09-03 12:53:03 UTC) #2
Peter Beverloo
+hans and bulach
8 years, 3 months ago (2012-09-03 12:54:14 UTC) #3
hans
http://codereview.chromium.org/10918045/diff/1/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/10918045/diff/1/build/android/envsetup.sh#newcode114 build/android/envsetup.sh:114: if echo "$GYP_DEFINES" | grep -q clang; then What ...
8 years, 3 months ago (2012-09-03 13:53:18 UTC) #4
Philippe
http://codereview.chromium.org/10918045/diff/1/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/10918045/diff/1/build/android/envsetup.sh#newcode114 build/android/envsetup.sh:114: if echo "$GYP_DEFINES" | grep -q clang; then On ...
8 years, 3 months ago (2012-09-03 14:02:29 UTC) #5
Philippe
8 years, 3 months ago (2012-09-03 14:02:29 UTC) #6
hans
On 2012/09/03 14:02:29, Philippe wrote: > http://codereview.chromium.org/10918045/diff/1/build/android/envsetup.sh > File build/android/envsetup.sh (right): > > http://codereview.chromium.org/10918045/diff/1/build/android/envsetup.sh#newcode114 > ...
8 years, 3 months ago (2012-09-03 14:04:44 UTC) #7
Philippe
Thanks Hans :) Let's see what Sam thinks. He's the one behind 54d2f6fe6d8a7b9d9786bd1f8540df6b4f46b83f in GYP. ...
8 years, 3 months ago (2012-09-03 14:10:02 UTC) #8
Philippe
On 2012/09/03 14:10:02, Philippe wrote: > Thanks Hans :) Let's see what Sam thinks. He's ...
8 years, 3 months ago (2012-09-03 16:09:43 UTC) #9
Yaron
http://codereview.chromium.org/10918045/diff/1002/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/10918045/diff/1002/build/android/envsetup.sh#newcode117 build/android/envsetup.sh:117: unset AR_target Note that I'm actually planning to remove ...
8 years, 3 months ago (2012-09-04 17:16:18 UTC) #10
Sam Clegg
On 2012/09/04 17:16:18, Yaron wrote: > http://codereview.chromium.org/10918045/diff/1002/build/android/envsetup.sh > File build/android/envsetup.sh (right): > > http://codereview.chromium.org/10918045/diff/1002/build/android/envsetup.sh#newcode117 > ...
8 years, 3 months ago (2012-09-04 17:51:20 UTC) #11
Philippe
Good point Sam, I followed your suggestion. http://codereview.chromium.org/10918045/diff/1002/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/10918045/diff/1002/build/android/envsetup.sh#newcode117 build/android/envsetup.sh:117: unset AR_target ...
8 years, 3 months ago (2012-09-05 15:23:24 UTC) #12
Yaron
On 2012/09/05 15:23:24, Philippe wrote: > Good point Sam, I followed your suggestion. > > ...
8 years, 3 months ago (2012-09-05 17:20:51 UTC) #13
Isaac (away)
Semi-related: we have a VM allocated for an upstream clang builder to reduce unexpected clang ...
8 years, 3 months ago (2012-09-05 17:30:31 UTC) #14
Isaac (away)
Related bug is crbug.com/143931 On Wed, Sep 5, 2012 at 10:30 AM, Isaac Levy <ilevy@chromium.org> ...
8 years, 3 months ago (2012-09-05 17:33:05 UTC) #15
Philippe
On 2012/09/05 17:33:05, Isaac wrote: > Related bug is crbug.com/143931 > > On Wed, Sep ...
8 years, 3 months ago (2012-09-06 08:42:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/10918045/6
8 years, 3 months ago (2012-09-06 09:34:27 UTC) #17
commit-bot: I haz the power
8 years, 3 months ago (2012-09-06 14:00:35 UTC) #18
Change committed as 155185

Powered by Google App Engine
This is Rietveld 408576698