summaryrefslogtreecommitdiff
path: root/PCbuild
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-09-21 18:23:05 +0000
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-09-21 18:23:05 +0000
commit2f816e6a10d7a56a2e277d7f5b1b25aec5e6a71d (patch)
tree4c1d083ffacc9ff8480c32c37836eebb75bcf713 /PCbuild
parent38425292fbb1811e78b02bbd190f6f4de75f6562 (diff)
downloadcpython-git-2f816e6a10d7a56a2e277d7f5b1b25aec5e6a71d.tar.gz
Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows)
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/build_ssl.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/PCbuild/build_ssl.py b/PCbuild/build_ssl.py
index a75c1fbef3..cfcb0ac8f1 100644
--- a/PCbuild/build_ssl.py
+++ b/PCbuild/build_ssl.py
@@ -228,11 +228,13 @@ def main():
shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
# If the assembler files don't exist in tmpXX, copy them there
- if not os.path.exists("tmp"+dirsuffix):
- os.mkdir("tmp"+dirsuffix)
- for f in os.listdir("asm"+dirsuffix):
- if not f.endswith(".asm"): continue
- shutil.copy(r"asm%s\%s" % (dirsuffix, f), "tmp"+dirsuffix)
+ if perl is None:
+ if not os.path.exists("tmp"+dirsuffix):
+ os.mkdir("tmp"+dirsuffix)
+ for f in os.listdir("asm"+dirsuffix):
+ if not f.endswith(".asm"): continue
+ if os.path.isfile(r"tmp%s\%s" % (dirsuffix, f)): continue
+ shutil.copy(r"asm%s\%s" % (dirsuffix, f), "tmp"+dirsuffix)
# Now run make.
if arch == "amd64":