mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
GH-113464: Get LLVM from cpython-bin-deps on Windows (GH-133278)
This commit is contained in:
parent
a0bc0c462f
commit
bfcbb28223
9 changed files with 44 additions and 13 deletions
|
@ -111,6 +111,7 @@ if "%IncludeExternals%"=="" set IncludeExternals=true
|
|||
if "%IncludeCTypes%"=="" set IncludeCTypes=true
|
||||
if "%IncludeSSL%"=="" set IncludeSSL=true
|
||||
if "%IncludeTkinter%"=="" set IncludeTkinter=true
|
||||
if "%UseJIT%" NEQ "true" set IncludeLLVM=false
|
||||
|
||||
if "%IncludeExternals%"=="true" call "%dir%get_externals.bat"
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ set IncludeSSLSrc=false
|
|||
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"=="--no-llvm" (set IncludeLLVM=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
|
||||
|
@ -80,6 +81,7 @@ if NOT "%IncludeLibffi%"=="false" set binaries=%binaries% libffi-3.4.4
|
|||
if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-3.0.16.2
|
||||
if NOT "%IncludeTkinter%"=="false" set binaries=%binaries% tcltk-8.6.15.0
|
||||
if NOT "%IncludeSSLSrc%"=="false" set binaries=%binaries% nasm-2.11.06
|
||||
if NOT "%IncludeLLVM%"=="false" set binaries=%binaries% llvm-19.1.7.0
|
||||
|
||||
for %%b in (%binaries%) do (
|
||||
if exist "%EXTERNALS_DIR%\%%b" (
|
||||
|
@ -98,7 +100,7 @@ goto end
|
|||
|
||||
:usage
|
||||
echo.Valid options: -c, --clean, --clean-only, --organization, --python,
|
||||
echo.--no-tkinter, --no-openssl
|
||||
echo.--no-tkinter, --no-openssl, --no-llvm
|
||||
echo.
|
||||
echo.Pull all sources and binaries necessary for compiling optional extension
|
||||
echo.modules that rely on external libraries.
|
||||
|
|
|
@ -30,7 +30,11 @@
|
|||
<_KeywordOutputs Include="$(PySourcePath)Lib\keyword.py" />
|
||||
<!-- Taken from _Target._compute_digest in Tools\jit\_targets.py: -->
|
||||
<_JITSources Include="$(PySourcePath)Python\executor_cases.c.h;$(GeneratedPyConfigDir)pyconfig.h;$(PySourcePath)Tools\jit\**"/>
|
||||
<!-- Need to explicitly enumerate these, since globbing doesn't work for missing outputs: -->
|
||||
<_JITOutputs Include="$(GeneratedPyConfigDir)jit_stencils.h"/>
|
||||
<_JITOutputs Include="$(GeneratedPyConfigDir)jit_stencils-aarch64-pc-windows-msvc.h" Condition="$(Platform) == 'ARM64'"/>
|
||||
<_JITOutputs Include="$(GeneratedPyConfigDir)jit_stencils-i686-pc-windows-msvc.h" Condition="$(Platform) == 'Win32'"/>
|
||||
<_JITOutputs Include="$(GeneratedPyConfigDir)jit_stencils-x86_64-pc-windows-msvc.h" Condition="$(Platform) == 'x64'"/>
|
||||
<_CasesSources Include="$(PySourcePath)Python\bytecodes.c;$(PySourcePath)Python\optimizer_bytecodes.c;"/>
|
||||
<_CasesOutputs Include="$(PySourcePath)Python\generated_cases.c.h;$(PySourcePath)Include\opcode_ids.h;$(PySourcePath)Include\internal\pycore_uop_ids.h;$(PySourcePath)Python\opcode_targets.h;$(PySourcePath)Include\internal\pycore_opcode_metadata.h;$(PySourcePath)Include\internal\pycore_uop_metadata.h;$(PySourcePath)Python\optimizer_cases.c.h;$(PySourcePath)Lib\_opcode_metadata.py"/>
|
||||
<_SbomSources Include="$(PySourcePath)PCbuild\get_externals.bat" />
|
||||
|
@ -124,6 +128,9 @@
|
|||
<Exec Command='$(PythonForBuild) "$(PySourcePath)Tools\jit\build.py" $(JITArgs)'
|
||||
WorkingDirectory="$(GeneratedPyConfigDir)"/>
|
||||
</Target>
|
||||
<Target Name="_CleanJIT" AfterTargets="Clean">
|
||||
<Delete Files="@(_JITOutputs)"/>
|
||||
</Target>
|
||||
|
||||
<Target Name="_RegenNoPGUpdate"
|
||||
Condition="$(Configuration) != 'PGUpdate'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue