summaryrefslogtreecommitdiffstats
path: root/src/browse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/browse.cc')
-rw-r--r--src/browse.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/browse.cc b/src/browse.cc
index 46434d7..14900f8 100644
--- a/src/browse.cc
+++ b/src/browse.cc
@@ -22,7 +22,7 @@
#include "build/browse_py.h"
void RunBrowsePython(State* state, const char* ninja_command,
- int argc, char* argv[]) {
+ const char* input_file, int argc, char* argv[]) {
// Fork off a Python process and have it run our code via its stdin.
// (Actually the Python process becomes the parent.)
int pipefd[2];
@@ -50,6 +50,8 @@ void RunBrowsePython(State* state, const char* ninja_command,
command.push_back("-");
command.push_back("--ninja-command");
command.push_back(ninja_command);
+ command.push_back("-f");
+ command.push_back(input_file);
for (int i = 0; i < argc; i++) {
command.push_back(argv[i]);
}