Skip to content

Commit

Permalink
Document VSINSTALLDIR path WAR
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed Mar 14, 2024
1 parent bb8da50 commit c361f27
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions buildscripts/incremental/build.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@

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%
Expand Down

0 comments on commit c361f27

Please sign in to comment.