Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 44890bf

Browse files
committed
build: Use %ProgramFiles(x86)% environment variable during build.
When compiling on newer versions of Windows, Visual Studio may be located in either `C:\Program Files` or `C:\Program Files (x86)`, depending on whether the operating system is 32-bit or 64-bit.
1 parent 5270c53 commit 44890bf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

make.cmd

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
@REM More-or-less the same effect as running vcvars32.bat
33
@REM from the Visual Studio source tree.
44
@REM @call vcvars32
5-
@set "PATH=C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Program Files\Microsoft Visual Studio 10.0\VC\VCPackages;C:\Program Files\HTML Help Workshop;C:\Program Files\Microsoft SDKs\Windows\7.0A\bin\NETFX 4.0 Tools;C:\Program Files\Microsoft SDKs\Windows\7.0A\bin;C:\Perl\site\bin;C:\Perl\bin;C:\windows\system32;C:\windows;C:\windows\system32\wbem"
6-
5+
@set "PATH=%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VSTSDB\Deploy;%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\;%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\BIN;%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\VCPackages;%ProgramFiles(x86)%\HTML Help Workshop;%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.0A\bin\NETFX 4.0 Tools;%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.0A\bin;C:\Perl\site\bin;C:\Perl\bin;C:\windows\system32;C:\windows;C:\windows\system32\wbem"
6+
77
@REM Works around hangs when generating .pdb files
88
@REM Needs to run in the background as never terminates
99
@REM
1010
@start /min /b mspdbsrv -start -spawn -shutdowntime -1
1111

1212
@REM Select the correct build mode.
13-
@REM
13+
@REM
1414
@IF NOT DEFINED BUILDTYPE SET BUILDTYPE=Debug
1515

1616
@REM Select the correct build project file
@@ -29,6 +29,5 @@ IF -%1-==-- (
2929
)
3030

3131
@msbuild %BUILD_PROJECT% /fl /flp:Verbosity=normal /nologo /p:Configuration=%BUILDTYPE% /m:1 /t:%TARGET%
32-
33-
@exit %ERRORLEVEL%
3432

33+
@exit %ERRORLEVEL%

0 commit comments

Comments
 (0)