From aa38b1859fbbded725eac001b077b4230fb6332e Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 3 Jun 2013 17:56:31 +0300 Subject: [PATCH] A few windows fixes. --- backends.py | 2 +- environment.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backends.py b/backends.py index a8579de0a..427a42181 100755 --- a/backends.py +++ b/backends.py @@ -30,7 +30,7 @@ else: execute_wrapper = '' def ninja_quote(text): - return text.replace(' ', '$ ') + return text.replace(' ', '$ ').replace(':', '$:') def do_replacement(regex, line, confdata): match = re.search(regex, line) diff --git a/environment.py b/environment.py index 6fbe85ebd..16606560d 100755 --- a/environment.py +++ b/environment.py @@ -256,6 +256,8 @@ class VisualStudioCCompiler(CCompiler): return ['/c'] def get_output_flags(self, target): + if target.endswith('.exe'): + return ['/Fe' + target] return ['/Fo' + target] def get_dependency_gen_flags(self, outtarget, outfile):