From 5df1818e2b12ffa82dfa8cc0af95989a2bc1bdf9 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 24 Jun 2014 19:03:15 +0300 Subject: [PATCH] MinGW fix. --- run_tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run_tests.py b/run_tests.py index 39116b00f..5f3ee5dd0 100755 --- a/run_tests.py +++ b/run_tests.py @@ -271,9 +271,11 @@ def generate_prebuilt_object(): if shutil.which('cl'): objectfile = objectbase + 'obj' raise RuntimeError('MSVC compilation not done yet.') - # And neither is MinGW. else: - objectfile = objectbase + 'o' + if is_windows(): + objectfile = objectbase + 'obj' + else: + objectfile = objectbase + 'o' subprocess.check_call(['cc', '-c', source, '-o', objectfile]) return objectfile