]> granicus.if.org Git - python/commitdiff
Issue 24385: Adds "--as-flags=--32" when generating 32-bit MinGW library.
authorSteve Dower <steve.dower@microsoft.com>
Mon, 8 Jun 2015 16:57:04 +0000 (09:57 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Mon, 8 Jun 2015 16:57:04 +0000 (09:57 -0700)
Tools/msi/msi.py

index af891fe454044ee3a2a3888de2becce99a03a332..219c0edf78a54936670b81c5cfce85d28e0ae76d 100644 (file)
@@ -147,7 +147,7 @@ def build_mingw_lib(dll_path, def_file, dll_file, mingw_lib):
     if msilib.Win64:
         dlltool_command += " -m i386:x86-64"
     else:
-        dlltool_command += " -m i386"
+        dlltool_command += " -m i386 --as-flags=--32"
 
     f = open(def_file,'w')
     gendef_pipe = os.popen(gendef_command)