diff options
author | Evan Martin <martine@danga.com> | 2013-01-06 23:33:46 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-04-08 22:01:35 (GMT) |
commit | 58c7139b9f404e18097d4f3ef6adcd49a01e3d73 (patch) | |
tree | f32cda7534e4d0f3a79fcee8f986981def88235f /configure.py | |
parent | ce65cb987adc7366f6da8f9d4e34c8cdab2d49bc (diff) | |
download | Ninja-58c7139b9f404e18097d4f3ef6adcd49a01e3d73.zip Ninja-58c7139b9f404e18097d4f3ef6adcd49a01e3d73.tar.gz Ninja-58c7139b9f404e18097d4f3ef6adcd49a01e3d73.tar.bz2 |
windows: drop use of msvc helper in build
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/configure.py b/configure.py index 8f5a497..eddf248 100755 --- a/configure.py +++ b/configure.py @@ -47,9 +47,6 @@ parser.add_option('--with-gtest', metavar='PATH', parser.add_option('--with-python', metavar='EXE', help='use EXE as the Python interpreter', default=os.path.basename(sys.executable)) -parser.add_option('--with-ninja', metavar='NAME', - help="name for ninja binary for -t msvc (MSVC only)", - default="ninja") (options, args) = parser.parse_args() if args: print('ERROR: extra unparsed command-line arguments:', args) @@ -190,14 +187,11 @@ n.variable('ldflags', ' '.join(shell_escape(flag) for flag in ldflags)) n.newline() if platform == 'windows': - compiler = '$cxx' - if options.with_ninja: - compiler = ('%s -t msvc -o $out -- $cxx /showIncludes' % - options.with_ninja) n.rule('cxx', - command='%s $cflags -c $in /Fo$out' % compiler, + command='$cxx /showIncludes $cflags -c $in /Fo$out', depfile='$out.d', - description='CXX $out') + description='CXX $out', + special='msvc') else: n.rule('cxx', command='$cxx -MMD -MT $out -MF $out.d $cflags -c $in -o $out', |