Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f816e6

Browse files
author
Hirokazu Yamamoto
committed
Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows)
1 parent 3842529 commit 2f816e6

3 files changed

Lines changed: 22 additions & 7 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ Tests
222222
Build
223223
-----
224224

225+
- Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows)
226+
225227
- Issue #1633863: Don't ignore $CC under AIX.
226228

227229
- Issue #9810: Compile bzip2 source files in python's project file

PC/VS8.0/build_ssl.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ def fix_makefile(makefile):
141141
fout.write(line)
142142

143143
def 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")

PCbuild/build_ssl.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,13 @@ def main():
228228
shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
229229

230230
# If the assembler files don't exist in tmpXX, copy them there
231-
if not os.path.exists("tmp"+dirsuffix):
232-
os.mkdir("tmp"+dirsuffix)
233-
for f in os.listdir("asm"+dirsuffix):
234-
if not f.endswith(".asm"): continue
235-
shutil.copy(r"asm%s\%s" % (dirsuffix, f), "tmp"+dirsuffix)
231+
if perl is None:
232+
if not os.path.exists("tmp"+dirsuffix):
233+
os.mkdir("tmp"+dirsuffix)
234+
for f in os.listdir("asm"+dirsuffix):
235+
if not f.endswith(".asm"): continue
236+
if os.path.isfile(r"tmp%s\%s" % (dirsuffix, f)): continue
237+
shutil.copy(r"asm%s\%s" % (dirsuffix, f), "tmp"+dirsuffix)
236238

237239
# Now run make.
238240
if arch == "amd64":

0 commit comments

Comments
 (0)