-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1035 from yashssh/llvm14to15
Support building against llvm15
- Loading branch information
Showing
14 changed files
with
139 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
|
||
call activate %CONDA_ENV% | ||
|
||
@rem LLVM derives the location of diaguids.lib from the build-time environment. | ||
@rem Conda-forge packaging works around this by substituting the build-time | ||
@rem location of Visual Studio with $ENV{VSINSTALLDIR}. In order to ensure that | ||
@rem this environment variable is set appropriately, we activate the Visual | ||
@rem Studio Developer Command Prompt prior to running setup.py | ||
@rem | ||
@rem This workaround is required whilst using LLVM from conda-forge; it may also | ||
@rem be necessary to consider a workaround for our own llvmdev packages. | ||
@rem | ||
@rem For more info, see: | ||
@rem | ||
@rem - https://github.com/conda-forge/llvmdev-feedstock/issues/175 | ||
@rem - https://github.com/conda-forge/llvmdev-feedstock/pull/223 | ||
@rem - https://github.com/MicrosoftDocs/visualstudio-docs/issues/7774 | ||
if "%LLVM%"=="15" ( | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
) | ||
|
||
python setup.py build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
@rem The cmd /C hack circumvents a regression where conda installs a conda.bat | ||
@rem script in non-root environments. | ||
set CONDA_INSTALL=cmd /C conda install -q -y | ||
set PIP_INSTALL=pip install -q | ||
|
||
@echo on | ||
|
||
@rem Deactivate any environment | ||
call deactivate | ||
@rem Display root environment (for debugging) | ||
conda list | ||
call conda list | ||
|
||
@rem Clean up any left-over from a previous build | ||
conda remove --all -q -y -n %CONDA_ENV% | ||
call conda remove --all -q -y -n %CONDA_ENV% | ||
|
||
@rem Create and populate environment | ||
conda create -n %CONDA_ENV% -q -y python=%PYTHON% cmake | ||
call conda create -n %CONDA_ENV% -q -y python=%PYTHON% cmake | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
call activate %CONDA_ENV% | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
@rem Install llvmdev | ||
%CONDA_INSTALL% -c numba/label/dev llvmdev="14.*" | ||
if "%LLVM%"=="15" ( | ||
set LLVMDEV_CHANNEL="conda-forge" | ||
) else ( | ||
set LLVMDEV_CHANNEL="numba/label/dev" | ||
) | ||
|
||
call conda install -y -q -c %LLVMDEV_CHANNEL% llvmdev="%LLVM%" libxml2 | ||
if %errorlevel% neq 0 exit /b %errorlevel% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.