diff options
author | Evan Martin <martine@danga.com> | 2012-09-13 18:07:45 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-09-13 18:11:47 (GMT) |
commit | c57f8a4258998a185f961ce12fd7c905a3e86180 (patch) | |
tree | 8651047b7ac8387f50348b6c37d8c5d6dd8addd4 /src/msvc_helper_main-win32.cc | |
parent | ce825d2f6e2bb8a0fa0bb97fe961d5f194f8f6f8 (diff) | |
download | Ninja-c57f8a4258998a185f961ce12fd7c905a3e86180.zip Ninja-c57f8a4258998a185f961ce12fd7c905a3e86180.tar.gz Ninja-c57f8a4258998a185f961ce12fd7c905a3e86180.tar.bz2 |
windows: merge msvc-helper into ninja.exe itself
Now "ninja -t msvc ..." passes the "..." to the msvc helper main.
This drastically simplifies bootstrap and makes ninja a single
binary again.
Diffstat (limited to 'src/msvc_helper_main-win32.cc')
-rw-r--r-- | src/msvc_helper_main-win32.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/msvc_helper_main-win32.cc b/src/msvc_helper_main-win32.cc index f265010..0c8db37 100644 --- a/src/msvc_helper_main-win32.cc +++ b/src/msvc_helper_main-win32.cc @@ -24,9 +24,7 @@ namespace { void Usage() { printf( -"ninja-msvc-helper: adjust msvc command-line tools for use by ninja.\n" -"\n" -"usage: ninja-mvsc-helper [options] -- command args\n" +"usage: ninja -t msvc [options] -- cl.exe /showIncludes /otherArgs\n" "options:\n" " -e ENVFILE load environment block from ENVFILE as environment\n" " -r BASE normalize paths and make relative to BASE before output\n" @@ -48,7 +46,7 @@ void PushPathIntoEnvironment(const string& env_block) { } // anonymous namespace -int main(int argc, char** argv) { +int MSVCHelperMain(int argc, char** argv) { const char* output_filename = NULL; const char* relative_to = NULL; const char* envfile = NULL; @@ -76,8 +74,10 @@ int main(int argc, char** argv) { } } - if (!output_filename) + if (!output_filename) { + Usage(); Fatal("-o required"); + } string env; if (envfile) { |