diff options
author | Nico Weber <thakis@chromium.org> | 2014-11-14 01:53:26 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2014-11-14 01:54:05 (GMT) |
commit | a39b9577ba25dc4968bbc5f4afe7d17524325bb0 (patch) | |
tree | 5f3b5a4997e0d0349c271215d13eb5ef85945e79 /src/ninja.cc | |
parent | 1f3f8b452b246144d7516410d7901635260f443e (diff) | |
download | Ninja-a39b9577ba25dc4968bbc5f4afe7d17524325bb0.zip Ninja-a39b9577ba25dc4968bbc5f4afe7d17524325bb0.tar.gz Ninja-a39b9577ba25dc4968bbc5f4afe7d17524325bb0.tar.bz2 |
Make sure configure.py and ninja.cc always agree on if -t browse is included.
No behavior change on most platforms. On solaris, -t browse was compiled in
in ninja.cc but browse.cc wasn't compiled in, which probably means that building
on Solaris didn't work. It might be better now.
This also makes browse.cc automatically not included in bootstrap builds;
previously this was done manually through the NINJA_BOOTSTRAP check.
Diffstat (limited to 'src/ninja.cc')
-rw-r--r-- | src/ninja.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index 27380c0..847000a 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -365,7 +365,7 @@ int NinjaMain::ToolQuery(int argc, char* argv[]) { return 0; } -#if !defined(_WIN32) && !defined(NINJA_BOOTSTRAP) +#if defined(NINJA_HAVE_BROWSE) int NinjaMain::ToolBrowse(int argc, char* argv[]) { if (argc < 1) { Error("expected a target to browse"); @@ -698,7 +698,7 @@ int NinjaMain::ToolUrtle(int argc, char** argv) { /// Returns a Tool, or NULL if Ninja should exit. const Tool* ChooseTool(const string& tool_name) { static const Tool kTools[] = { -#if !defined(_WIN32) && !defined(NINJA_BOOTSTRAP) +#if defined(NINJA_HAVE_BROWSE) { "browse", "browse dependency graph in a web browser", Tool::RUN_AFTER_LOAD, &NinjaMain::ToolBrowse }, #endif |