summaryrefslogtreecommitdiffstats
path: root/PCbuild/get_externals.bat
diff options
context:
space:
mode:
authorPaul Monson <paulmon@users.noreply.github.com>2019-03-29 23:30:10 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2019-03-29 23:30:10 (GMT)
commit32119e10b792ad7ee4e5f951a2d89ddbaf111cc5 (patch)
tree49219272ab3f00bbc62a9d70a2e05ba938d7ec1e /PCbuild/get_externals.bat
parent3396d1e0ca858065c5bb7e5a9737be6ffc4028f7 (diff)
downloadcpython-32119e10b792ad7ee4e5f951a2d89ddbaf111cc5.zip
cpython-32119e10b792ad7ee4e5f951a2d89ddbaf111cc5.tar.gz
cpython-32119e10b792ad7ee4e5f951a2d89ddbaf111cc5.tar.bz2
bpo-35947: Update Windows to the current version of libffi (GH-11797)
We now use a pre-built libffi binary from our binaries repository, and no longer vendor the full implementation.
Diffstat (limited to 'PCbuild/get_externals.bat')
-rw-r--r--PCbuild/get_externals.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/PCbuild/get_externals.bat b/PCbuild/get_externals.bat
index 887fdc9..b82b6e6 100644
--- a/PCbuild/get_externals.bat
+++ b/PCbuild/get_externals.bat
@@ -7,14 +7,17 @@ if NOT DEFINED EXTERNALS_DIR (set EXTERNALS_DIR=%PCBUILD%\..\externals)
set DO_FETCH=true
set DO_CLEAN=false
+set IncludeLibffiSrc=false
set IncludeTkinterSrc=false
set IncludeSSLSrc=false
:CheckOpts
if "%~1"=="--no-tkinter" (set IncludeTkinter=false) & shift & goto CheckOpts
if "%~1"=="--no-openssl" (set IncludeSSL=false) & shift & goto CheckOpts
+if "%~1"=="--no-libffi" (set IncludeLibffi=false) & shift & goto CheckOpts
if "%~1"=="--tkinter-src" (set IncludeTkinterSrc=true) & shift & goto CheckOpts
if "%~1"=="--openssl-src" (set IncludeSSLSrc=true) & shift & goto CheckOpts
+if "%~1"=="--libffi-src" (set IncludeLibffiSrc=true) & shift & goto CheckOpts
if "%~1"=="--python" (set PYTHON=%2) & shift & shift & goto CheckOpts
if "%~1"=="--organization" (set ORG=%2) & shift & shift & goto CheckOpts
if "%~1"=="-c" (set DO_CLEAN=true) & shift & goto CheckOpts
@@ -49,6 +52,7 @@ echo.Fetching external libraries...
set libraries=
set libraries=%libraries% bzip2-1.0.6
+if NOT "%IncludeLibffiSrc%"=="false" set libraries=%libraries% libffi-3.3.0-rc0-r1
if NOT "%IncludeSSLSrc%"=="false" set libraries=%libraries% openssl-1.1.0j
set libraries=%libraries% sqlite-3.21.0.0
if NOT "%IncludeTkinterSrc%"=="false" set libraries=%libraries% tcl-core-8.6.9.0
@@ -72,6 +76,7 @@ for %%e in (%libraries%) do (
echo.Fetching external binaries...
set binaries=
+if NOT "%IncludeLibffi%"=="false" set binaries=%binaries% libffi
if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-1.1.0j
if NOT "%IncludeTkinter%"=="false" set binaries=%binaries% tcltk-8.6.9.0
if NOT "%IncludeSSLSrc%"=="false" set binaries=%binaries% nasm-2.11.06