Skip to content

Commit

Permalink
Compatibility fix with Visual Studio 2017 v15.3.2
Browse files Browse the repository at this point in the history
Visual Studio Development Command Prompt began reseting current directory to %USERPROFILE%\sources when called
I don't know if this is a bug or intended behavior but after this change this is going to be irrelevant
  • Loading branch information
pal1000 committed Aug 23, 2017
1 parent db6113b commit 1b3919b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildscript/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@
@if "%toolchain%"=="Ninja" set PATH=%mesa%ninja\;%PATH%
@set vsenv=%vsenv14%
@if %toolset%==15 set vsenv=%vsenv15%
@set llvmbuildsys=%CD%
@call %vsenv%
@set vsenvloaded=1
@echo.
@set modtoolchainabi=0
@if NOT "%toolchain%"=="Ninja" set modtoolchainabi=1
@if %abi%==x64 set modtoolchainabi=%modtoolchainabi%2
@if %modtoolchainabi%==12 set toolchain=%toolchain% Win64
@cd %llvmbuildsys%
@cmake -G "%toolchain%" -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT -DLLVM_ENABLE_RTTI=1 -DLLVM_ENABLE_TERMINFO=OFF -DCMAKE_INSTALL_PREFIX=../%abi% ..
@echo.
@pause
Expand Down Expand Up @@ -153,6 +155,7 @@ cd mesa
@if /I "%cleanbuild%"=="y" RD /S /Q build\windows-%longabi%
@if %vsenvloaded%==0 (
@call %vsenv%
@cd %mesa%mesa
@echo.
)

Expand Down

0 comments on commit 1b3919b

Please sign in to comment.