Support mingw-w64 compiler.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 28 Sep 2011 09:10:48 +0000 (11:10 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 28 Sep 2011 09:10:48 +0000 (11:10 +0200)
source/wscript

index af051577bc2d9bc573278521ac3ecd45764659bb..ee58d3d55fca61b06ebf2bb9dca580d4b84aa703 100644 (file)
@@ -20,8 +20,8 @@ def configure(ctx):
         f.write('// Use public Samba header files\n')
     f.close()
     # Configure winexe
-    ctx.find_program([ a + '-' + p + '-gcc' for a in ['i386',   'i586' ] for p in ['mingw32', 'mingw32msvc'] ], var='CC_WIN32')
-    ctx.find_program([ a + '-' + p + '-gcc' for a in ['x86_64', 'amd64'] for p in ['mingw32', 'mingw32msvc'] ], var='CC_WIN64')
+    ctx.find_program([ a + '-' + p + '-gcc' for a in ['i386',   'i586', 'i686' ] for p in ['mingw32', 'mingw32msvc', 'w64-mingw32'] ], var='CC_WIN32')
+    ctx.find_program([ a + '-' + p + '-gcc' for a in ['x86_64', 'amd64'] for p in ['mingw32', 'mingw32msvc', 'w64-mingw32'] ], var='CC_WIN64')
     ctx.find_program('strip', var='STRIP')
     ctx.load('compiler_c')
     # Should also look for runtime files such as windows.h