]> granicus.if.org Git - handbrake/commitdiff
configure: fix LDProbe cleanup on mingw
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 6 Jan 2019 20:10:30 +0000 (12:10 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 6 Jan 2019 20:10:30 +0000 (12:10 -0800)
LDProbe tries to delete conftest, but should delete conftest.exe on
mingw.  So delete *both* in a try-catch block.

make/configure.py

index b854ff6fed35189d3cc1c68b50b4cd3e58093298..1442f850e182f952bac69abe62628c4260efd355 100644 (file)
@@ -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 )