From d3441a03386e0d1766c1a4b79d5fa5098786860f Mon Sep 17 00:00:00 2001 From: Jason Haslam Date: Tue, 26 May 2015 16:47:18 -0600 Subject: Search for generated headers relative to build dir. --- configure.py | 3 +++ src/browse.cc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 69f6075..27516b4 100755 --- a/configure.py +++ b/configure.py @@ -355,6 +355,9 @@ if platform.supports_ppoll() and not options.force_pselect: if platform.supports_ninja_browse(): cflags.append('-DNINJA_HAVE_BROWSE') +# Search for generated headers relative to build dir. +cflags.append('-I.') + def shell_escape(str): """Escape str such that it's interpreted as a single argument by the shell.""" diff --git a/src/browse.cc b/src/browse.cc index 83bfe43..8673919 100644 --- a/src/browse.cc +++ b/src/browse.cc @@ -18,7 +18,7 @@ #include #include -#include "../build/browse_py.h" +#include "build/browse_py.h" void RunBrowsePython(State* state, const char* ninja_command, const char* initial_target) { -- cgit v1.2.1