mirror of
https://github.com/reactos/ninja.git
synced 2025-03-04 09:18:44 +00:00
print 'entering directory' when -C is used
This allows Emacs to track what directory you're in. Patch from Ami Fischman <fischman@chromium.org>.
This commit is contained in:
parent
283282d612
commit
ca46af55eb
@ -526,6 +526,10 @@ int main(int argc, char** argv) {
|
||||
argc -= optind;
|
||||
|
||||
if (working_dir) {
|
||||
// The formatting of this string, complete with funny quotes, is
|
||||
// so Emacs can properly identify that the cwd has changed for
|
||||
// subsequent commands.
|
||||
printf("ninja: Entering directory `%s'\n", working_dir);
|
||||
#ifdef _WIN32
|
||||
if (_chdir(working_dir) < 0) {
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user