Process the -C option before running RUN_AFTER_FLAGS tools.
authorHans Wennborg <hans@hanshq.net>
Sat, 3 May 2014 23:07:09 +0000 (16:07 -0700)
committerHans Wennborg <hans@hanshq.net>
Sat, 3 May 2014 23:07:09 +0000 (16:07 -0700)
commit86c4b0618bf714367096c8b7661bde068b02e8fa
treecf454effecdef3f65e5ce9a028f31aa810e23f93
parent9b156e4e026bfad25bb2684d2f4fb8862ec19752
Process the -C option before running RUN_AFTER_FLAGS tools.

This brings the flag more inline with its description: "change to
DIR before doing anything else".

The use case is to make it possible to use -C together with -t msvc.
When debugging Windows builds, it's handy to be able to copy-paste
the commands from "ninja -v" and make them run in the correct
directory by adding this flag.
src/ninja.cc