summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon <jon.forums@gmail.com>2013-05-25 14:29:24 (GMT)
committerJon <jon.forums@gmail.com>2013-05-25 14:29:24 (GMT)
commitfe2dd5b33fd13b1e8ef0cfdca78bab95cb50346c (patch)
tree7ed083f06ff29fff5045882eb0a28d93c6a3f427
parentcc47bfb1ce599f4b3f20679d96e258bb595c2dc3 (diff)
downloadNinja-fe2dd5b33fd13b1e8ef0cfdca78bab95cb50346c.zip
Ninja-fe2dd5b33fd13b1e8ef0cfdca78bab95cb50346c.tar.gz
Ninja-fe2dd5b33fd13b1e8ef0cfdca78bab95cb50346c.tar.bz2
Fix mingw based builds. Fixes #587
-rw-r--r--src/ninja.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index cd34b1a..3b381b7 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -361,7 +361,7 @@ int NinjaMain::ToolBrowse(int argc, char* argv[]) {
}
#endif // _WIN32
-#if defined(_WIN32)
+#if defined(_MSC_VER)
int NinjaMain::ToolMSVC(int argc, char* argv[]) {
// Reset getopt: push one argument onto the front of argv, reset optind.
argc++;
@@ -636,7 +636,7 @@ const Tool* ChooseTool(const string& tool_name) {
{ "browse", "browse dependency graph in a web browser",
Tool::RUN_AFTER_LOAD, &NinjaMain::ToolBrowse },
#endif
-#if defined(_WIN32)
+#if defined(_MSC_VER)
{ "msvc", "build helper for MSVC cl.exe (EXPERIMENTAL)",
Tool::RUN_AFTER_FLAGS, &NinjaMain::ToolMSVC },
#endif