Fix build template for --platform msvc
There is no `ninja -t msvc` command that can be used as in
the original version of the template. The new version has been
used succesfully on Linux using clang-cl with:
build/gen.py --platform msvc --no-last-commit-position
And running gn_unittests.exe under Wine (which fails in one
test related to base::FilePath, to be fixed in a future CL).
Note: this has not been tested on a real Windows machine with
the Visual Studio Compiler suite!
Bug: None
Change-Id: I5dc021c37588aa75c4fca63515aed179bd154ebc
Reviewed-on: https://gn-review.googlesource.com/c/gn/+/12861
Reviewed-by: Brett Wilson <brettw@chromium.org>
Commit-Queue: David Turner <digit@google.com>
diff --git a/build/build_win.ninja.template b/build/build_win.ninja.template
index e2ca186..f1d1775 100644
--- a/build/build_win.ninja.template
+++ b/build/build_win.ninja.template
@@ -1,12 +1,12 @@
rule cxx
- command = ninja -t msvc -- $cxx /nologo /showIncludes /FC $includes $cflags /c $in /Fo$out
+ command = $cxx /nologo /showIncludes /FC $includes $cflags /c $in /Fo$out
description = CXX $out
deps = msvc
rule alink_thin
- command = ninja -t msvc -- $ar /nologo /ignore:4221 $libflags /OUT:$out $in
+ command = $ar /nologo /ignore:4221 $libflags /OUT:$out $in
description = LIB $out
rule link
- command = ninja -t msvc -- $ld /nologo $ldflags /OUT:$out /PDB:$out.pdb $in $solibs $libs
+ command = $ld /nologo $ldflags /OUT:$out /PDB:$out.pdb $in $solibs $libs
description = LINK $out