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

Issue 233713003: Change cxxflags test to build in same env as gyp (+ test make instead of ninja) (Closed)

Created:
6 years, 8 months ago by Nils Barth (inactive)
Modified:
6 years, 8 months ago
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@cm
Visibility:
Public.

Description

Change cxxflags test to build in same env as gyp (+ test make instead of ninja) Closed: handled by using a define instead: Make test/cxxflags use a user define instead of __OPTIMIZE__ https://codereview.chromium.org/235033003/ Fixes test/build breakage in GYP r1893 https://code.google.com/p/gyp/source/detail?r=1893 http://build.chromium.org/p/tryserver.nacl/builders/gyp-win32/builds/1710 ...due to different behavior on ninja-Linux and ninja-Windows (apparently). Changes: 1. Switch back to testing make, instead of ninja. (Test originally only tested make.) 2. Changes test to always use same build env as gyp, not different one, as otherwise make fails to use gyp time settings. (Different build env from gyp has build-system and platform dependent results: works on ninja-Linux, for instance, but not make.) Follow-up to: Use context manager to manage OS environment in tests https://codereview.chromium.org/228323002/ R=thakis TEST=PYTHONPATH=$CHROMIUM_DIR/tools/gyp/gyptest.py -f make test/cxxflags/gyptest-cxxflags.py

Patch Set 1 #

Patch Set 2 : Switch to make only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -8 lines) Patch
M test/cxxflags/gyptest-cxxflags.py View 1 2 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Nils Barth (inactive)
Heyas, Here's a quick CL that should fix the Windows build/test sadness. If this is ...
6 years, 8 months ago (2014-04-11 02:42:34 UTC) #1
scottmg
I still get this on Windows: d:\src\cr3\src\tools\gyp>python gyptest.py -f ninja test\cxxflags\gyptest-cxxflags.py PYTHONPATH=d:\src\cr3\src\tools\gyp\test\lib TESTGYP_FORMAT=ninja d:\src\depot_tools\python276_bin\python.exe test\cxxflags\gyptest-cxxflags.py ...
6 years, 8 months ago (2014-04-11 03:01:53 UTC) #2
Nils Barth (inactive)
On 2014/04/11 03:01:53, scottmg wrote: > I still get this on Windows: > > d:\src\cr3\src\tools\gyp>python ...
6 years, 8 months ago (2014-04-11 04:31:44 UTC) #3
scottmg
On 2014/04/11 04:31:44, Nils Barth wrote: > On 2014/04/11 03:01:53, scottmg wrote: > > I ...
6 years, 8 months ago (2014-04-11 18:23:31 UTC) #4
Nils Barth (inactive)
On 2014/04/11 18:23:31, scottmg wrote: > CXXFLAGS appears to work fine, the test just strangely ...
6 years, 8 months ago (2014-04-14 01:58:17 UTC) #5
Nils Barth (inactive)
6 years, 8 months ago (2014-04-15 01:17:36 UTC) #6
Message was sent while issue was closed.
On 2014/04/14 01:58:17, Nils Barth wrote:
> Hmm...so presumably the .cc test file needs fixing?
> (Easiest would just be to pass -D as a flag, as in the cflags test.)

Yup, done in:
Make test/cxxflags use a user define instead of __OPTIMIZE__
https://codereview.chromium.org/235033003/

Thanks Scott!

Powered by Google App Engine
This is Rietveld 408576698