diff options
| author | agronholm <none@none> | 2009-09-25 22:01:27 +0300 |
|---|---|---|
| committer | agronholm <none@none> | 2009-09-25 22:01:27 +0300 |
| commit | efa78ba0a0e1f89b92da4fa0fa6e5e029efecf3f (patch) | |
| tree | b42d2975e30e286ef9ebe2e46596ce347d89acd7 /msvc-build-launcher.cmd | |
| parent | 758eba50d92348b0f1ba43a2e6ee3a842f49ffed (diff) | |
| download | python-setuptools-git-efa78ba0a0e1f89b92da4fa0fa6e5e029efecf3f.tar.gz | |
Fix script launcher creation on 64-bit Windows, patch by Jason R. Coombs (http://bugs.python.org/setuptools/issue2)
--HG--
branch : distribute
extra : rebase_source : 60c07b0639b77a3e8ff13eb12161ebe03ab47430
Diffstat (limited to 'msvc-build-launcher.cmd')
| -rw-r--r-- | msvc-build-launcher.cmd | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/msvc-build-launcher.cmd b/msvc-build-launcher.cmd new file mode 100644 index 00000000..3666d723 --- /dev/null +++ b/msvc-build-launcher.cmd @@ -0,0 +1,15 @@ +@echo off
+
+REM VCVARSALL may be in Program Files or Program Files (x86)
+PATH=C:\Program Files\Microsoft Visual Studio 9.0\VC;%PATH%
+PATH=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC;%PATH%
+
+REM set up the environment to compile to x86
+call VCVARSALL x86
+cl /D "GUI=0" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x86 /out:setuptools/cli-32.exe
+cl /D "GUI=1" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x86 /out:setuptools/gui-32.exe
+
+REM now for 64-bit
+call VCVARSALL x86_amd64
+cl /D "GUI=0" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x64 /out:setuptools/cli-64.exe
+cl /D "GUI=1" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x64 /out:setuptools/gui-64.exe
\ No newline at end of file |
