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

Issue 23140009: Rework the cflags test so it works cross platform. (Closed)

Created:
7 years, 4 months ago by tony
Modified:
7 years, 4 months ago
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Rework the cflags test so it works cross platform. Rather than using optimization flags to test cflags, use our own explicit defined flag. This is better than depending on __OPTIMIZE__. R=phajdan.jr@chromium.org, scottmg@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1698

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -24 lines) Patch
M test/cflags/cflags.c View 1 chunk +3 lines, -3 lines 0 comments Download
M test/cflags/cflags.gyp View 2 chunks +0 lines, -2 lines 0 comments Download
M test/cflags/gyptest-cflags.py View 1 6 chunks +9 lines, -19 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tony
7 years, 4 months ago (2013-08-19 22:58:19 UTC) #1
scottmg
lgtm
7 years, 4 months ago (2013-08-19 22:59:17 UTC) #2
Paweł Hajdan Jr.
LGTM with a comment https://codereview.chromium.org/23140009/diff/1/test/cflags/gyptest-cflags.py File test/cflags/gyptest-cflags.py (right): https://codereview.chromium.org/23140009/diff/1/test/cflags/gyptest-cflags.py#newcode28 test/cflags/gyptest-cflags.py:28: if sys.platform.startswith('linux'): This may now ...
7 years, 4 months ago (2013-08-19 23:00:09 UTC) #3
tony
On 2013/08/19 23:00:09, Paweł Hajdan Jr. wrote: > LGTM with a comment > > https://codereview.chromium.org/23140009/diff/1/test/cflags/gyptest-cflags.py ...
7 years, 4 months ago (2013-08-19 23:09:06 UTC) #4
tony
Committed patchset #2 manually as r1698 (presubmit successful).
7 years, 4 months ago (2013-08-19 23:13:01 UTC) #5
scottmg
7 years, 4 months ago (2013-08-19 23:18:27 UTC) #6
Message was sent while issue was closed.
On 2013/08/19 23:09:06, tony wrote:
> On 2013/08/19 23:00:09, Paweł Hajdan Jr. wrote:
> > LGTM with a comment
> > 
> >
https://codereview.chromium.org/23140009/diff/1/test/cflags/gyptest-cflags.py
> > File test/cflags/gyptest-cflags.py (right):
> > 
> >
>
https://codereview.chromium.org/23140009/diff/1/test/cflags/gyptest-cflags.py...
> > test/cflags/gyptest-cflags.py:28: if sys.platform.startswith('linux'):
> > This may now work on Mac, could you check that?
> 
> The code doesn't run on Mac.  In ninja.py, the code block is:
> if mac:
> elif win:
> else:
>   read CFLAGS/CXXFLAGS/LDFLAGS.
> 
> I can do a follow up patch to enable this on Mac.  Should gyp on Windows also
> look at the environment variables?

If it's easy, I would say we should make them match. If it's not, then I don't
think it matters much as it's not a commonly-used convention there.

Powered by Google App Engine
This is Rietveld 408576698