@@ -141,8 +141,8 @@ def fix_makefile(makefile):
141141 fout .write (line )
142142
143143def run_configure (configure , do_script ):
144- print ("perl Configure " + configure )
145- os .system ("perl Configure " + configure )
144+ print ("perl Configure " + configure + " no-idea no-mdc2" )
145+ os .system ("perl Configure " + configure + " no-idea no-mdc2" )
146146 print (do_script )
147147 os .system (do_script )
148148
@@ -161,12 +161,14 @@ def main():
161161 do_script = "ms\\ do_nasm"
162162 makefile = "ms\\ nt.mak"
163163 m32 = makefile
164+ dirsuffix = "32"
164165 elif sys .argv [2 ] == "x64" :
165166 arch = "amd64"
166167 configure = "VC-WIN64A"
167168 do_script = "ms\\ do_win64a"
168169 makefile = "ms\\ nt64.mak"
169170 m32 = makefile .replace ('64' , '' )
171+ dirsuffix = "64"
170172 #os.environ["VSEXTCOMP_USECL"] = "MS_OPTERON"
171173 else :
172174 raise ValueError (str (sys .argv ))
@@ -223,6 +225,15 @@ def main():
223225 shutil .copy (r"crypto\buildinf.h" , r"crypto\buildinf_%s.h" % arch )
224226 shutil .copy (r"crypto\opensslconf.h" , r"crypto\opensslconf_%s.h" % arch )
225227
228+ # If the assembler files don't exist in tmpXX, copy them there
229+ if perl is None :
230+ if not os .path .exists ("tmp" + dirsuffix ):
231+ os .mkdir ("tmp" + dirsuffix )
232+ for f in os .listdir ("asm" + dirsuffix ):
233+ if not f .endswith (".asm" ): continue
234+ if os .path .isfile (r"tmp%s\%s" % (dirsuffix , f )): continue
235+ shutil .copy (r"asm%s\%s" % (dirsuffix , f ), "tmp" + dirsuffix )
236+
226237 # Now run make.
227238 if arch == "amd64" :
228239 rc = os .system ("ml64 -c -Foms\\ uptable.obj ms\\ uptable.asm" )
0 commit comments