From c7990b5b985d5619478b184acd62c49b2a4f24e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 14 Jul 2006 12:31:05 +0000 Subject: [PATCH] Fix Debug build of _ssl. --- PCbuild/_ssl.vcproj | 8 ++++---- PCbuild/build_ssl.bat | 9 +++++++-- PCbuild/build_ssl.py | 8 ++++---- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/PCbuild/_ssl.vcproj b/PCbuild/_ssl.vcproj index 3395660a05b..bc69ee8862b 100644 --- a/PCbuild/_ssl.vcproj +++ b/PCbuild/_ssl.vcproj @@ -22,7 +22,7 @@ @@ -36,7 +36,7 @@ @@ -50,7 +50,7 @@ @@ -64,7 +64,7 @@ diff --git a/PCbuild/build_ssl.bat b/PCbuild/build_ssl.bat index 7065bb2ac00..82572ed18ae 100644 --- a/PCbuild/build_ssl.bat +++ b/PCbuild/build_ssl.bat @@ -1,5 +1,10 @@ @echo off -cd -if not defined HOST_PYTHON set HOST_PYTHON=python +if not defined HOST_PYTHON ( + if %1 EQU Debug ( + set HOST_PYTHON=python_d.exe + ) ELSE ( + set HOST_PYTHON=python.exe + ) +) %HOST_PYTHON% build_ssl.py %1 %2 diff --git a/PCbuild/build_ssl.py b/PCbuild/build_ssl.py index 7b4c2efc958..d4beee54169 100644 --- a/PCbuild/build_ssl.py +++ b/PCbuild/build_ssl.py @@ -113,24 +113,24 @@ def run_configure(configure, do_script): def main(): build_all = "-a" in sys.argv - if sys.argv[-1] == "Release": + if sys.argv[1] == "Release": arch = "x86" debug = False configure = "VC-WIN32" makefile = "32.mak" - elif sys.argv[-1] == "Debug": + elif sys.argv[1] == "Debug": arch = "x86" debug = True configure = "VC-WIN32" makefile="d32.mak" - elif sys.argv[-1] == "ReleaseItanium": + elif sys.argv[1] == "ReleaseItanium": arch = "ia64" debug = False configure = "VC-WIN64I" do_script = "ms\\do_win64i" makefile = "ms\\nt.mak" os.environ["VSEXTCOMP_USECL"] = "MS_ITANIUM" - elif sys.argv[-1] == "ReleaseAMD64": + elif sys.argv[1] == "ReleaseAMD64": arch="amd64" debug=False configure = "VC-WIN64A"