Chromium Code Reviews
DescriptionMake 'tools/build.py -h' warn the user to run it from the repo root.
The script by default runs 'make all' in the current directory. Since it's common to have a Makefile with an 'all' rule, this can lead to silent failure when a user runs the script from outside the repo root while intending
to do a default build. That behavior is error prone: in my case it made my regression tests pass when they should fail, because I was not actually rebuilding when I thought I was.
It turns out that the build script is sometimes run outside the repo root on purpose, so we can't simply require it be run from the repo root. So, we document the relative nature of the build script.
R=ricow@google.com, jwren@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=20958
Committed: https://code.google.com/p/dart/source/detail?r=40465
Patch Set 1 #
Total comments: 2
Patch Set 2 : Use simpler solution suggested by @zra. #
Total comments: 2
Patch Set 3 : Make fix more conservative: simply fail on wrong cwd. #
Total comments: 1
Patch Set 4 : Revert "quit on wrong CWD" and add warning to help output. #Messages
Total messages: 14 (3 generated)
|