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

Issue 10222010: Don't set up environment for ninja if the compiler is already available (Closed)

Created:
8 years, 8 months ago by scottmg
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Dirk Pranke
Visibility:
Public.

Description

Don't set up environment for ninja if the compiler is already available Previously when ninja.bat was run from a prompt that already had VS vars available, it was adding them a second time. Depending on what else the user had in the path, this could cause the path to become too long and so things at the end wouldn't be found. To avoid this, check if the compiler is available first, and don't run the environment set up in that case. R=maruel@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133940

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -3 lines) Patch
M ninja.bat View 1 2 1 chunk +18 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
scottmg
8 years, 8 months ago (2012-04-25 17:44:32 UTC) #1
Wez
LGTM, FWIW. :)
8 years, 8 months ago (2012-04-25 17:48:36 UTC) #2
Marc-Antoine Ruel (Google)
https://chromiumcodereview.appspot.com/10222010/diff/1/ninja.bat File ninja.bat (right): https://chromiumcodereview.appspot.com/10222010/diff/1/ninja.bat#newcode34 ninja.bat:34: if %errorlevel% EQU 0 goto no_set_env back in my ...
8 years, 8 months ago (2012-04-25 17:55:49 UTC) #3
scottmg
On 2012/04/25 17:55:49, Marc-Antoine Ruel (Google) wrote: > https://chromiumcodereview.appspot.com/10222010/diff/1/ninja.bat > File ninja.bat (right): > > ...
8 years, 8 months ago (2012-04-25 18:09:40 UTC) #4
M-A Ruel
lgtm https://chromiumcodereview.appspot.com/10222010/diff/3/ninja.bat File ninja.bat (right): https://chromiumcodereview.appspot.com/10222010/diff/3/ninja.bat#newcode51 ninja.bat:51: endlocal & set PATH=%~dp0python_bin;%~dp0ninja-win;%PATH% Ah, I guess this ...
8 years, 8 months ago (2012-04-25 18:14:43 UTC) #5
scottmg
On 2012/04/25 18:14:43, Marc-Antoine Ruel wrote: > lgtm > > https://chromiumcodereview.appspot.com/10222010/diff/3/ninja.bat > File ninja.bat (right): ...
8 years, 8 months ago (2012-04-25 18:19:54 UTC) #6
M-A Ruel
lgtm
8 years, 8 months ago (2012-04-25 18:22:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/10222010/8002
8 years, 8 months ago (2012-04-25 18:22:28 UTC) #8
commit-bot: I haz the power
Can't apply patch for file depot_tools/ninja.bat. While running patch -p0 --forward --force; patching file depot_tools/ninja.bat ...
8 years, 8 months ago (2012-04-25 18:22:30 UTC) #9
M-A Ruel
8 years, 8 months ago (2012-04-25 18:36:36 UTC) #10
On 2012/04/25 18:22:30, I haz the power (commit-bot) wrote:
> Can't apply patch for file depot_tools/ninja.bat.

Ah right, please commit manually.

Powered by Google App Engine
This is Rietveld 408576698