From b09c99829c9412b05888eb7ac017d9b26166396c Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Sun, 6 Jan 2019 12:10:30 -0800 Subject: [PATCH] configure: fix LDProbe cleanup on mingw LDProbe tries to delete conftest, but should delete conftest.exe on mingw. So delete *both* in a try-catch block. --- make/configure.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/make/configure.py b/make/configure.py index b854ff6fe..1442f850e 100644 --- a/make/configure.py +++ b/make/configure.py @@ -396,7 +396,11 @@ class LDProbe( Action ): os.remove( 'conftest.c' ) if not self.fail: - os.remove( 'conftest' ) + try: + os.remove( 'conftest.exe' ) + os.remove( 'conftest' ) + except: + pass def _dumpSession( self, printf ): printf( ' + %s\n', self.command ) -- 2.40.0