Skip to content

Commit

Permalink
Added support for building chez with VS2019. (cisco#435)
Browse files Browse the repository at this point in the history
added support for Microsoft Visual Studio 2019 on Windows
  • Loading branch information
steven741 authored and burgerrg committed Jun 4, 2019
1 parent b34695b commit 549b446
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
7 changes: 6 additions & 1 deletion BUILDING
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,16 @@ env OS=Windows_NT make
Prerequisites:

* Bash/WSL, MinGW/MSYS, or Cygwin with bash, git, grep, make, sed, etc.
* Microsoft Visual Studio 2017 or 2015
* Microsoft Visual Studio 2019, 2017, or 2015
* WiX Toolset (for making an install)

Be sure that git config core.autocrlf is set to false.

If you're using Visual Studio 2019, install "Desktop development with C++"
on the "Workloads" tabs and the "C++ 2019 Redistributable MSMs" on the
"Individual components" tab under the "Compilers, build tools, and runtimes"
section.

To run Chez Scheme or Petite Chez Scheme from a Windows command prompt,
set PATH:

Expand Down
2 changes: 2 additions & 0 deletions LOG
Original file line number Diff line number Diff line change
Expand Up @@ -1370,3 +1370,5 @@
cpnanopass.ss
- make test for relop-length more sensitive
5_2.ms
- added support for Microsoft Visual Studio 2019 on Windows
BUILDING, c/vs.bat, wininstall/locate-vcredist.bat
16 changes: 16 additions & 0 deletions c/vs.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ set Applications=%ProgramFiles%
:: Set up Visual Studio command line environment variables given a
:: machine type, e.g., amd64 or x86.

:: Visual Studio 2019 Enterprise
set BATDIR=%Applications%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build
if exist "%BATDIR%\vcvarsall.bat" goto found

:: Visual Studio 2019 Professional
set BATDIR=%Applications%\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build
if exist "%BATDIR%\vcvarsall.bat" goto found

:: Visual Studio 2019 Community
set BATDIR=%Applications%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build
if exist "%BATDIR%\vcvarsall.bat" goto found

:: Visual Studio 2019 BuildTools
set BATDIR=%Applications%\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build
if exist "%BATDIR%\vcvarsall.bat" goto found

:: Visual Studio 2017 Enterprise
set BATDIR=%Applications%\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build
if exist "%BATDIR%\vcvarsall.bat" goto found
Expand Down
2 changes: 1 addition & 1 deletion wininstall/locate-vcredist.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
SET "Path64=%CommonProgramFiles(x86)%\Merge Modules\Microsoft_VC140_CRT_x64.msm"
)

@IF "%VisualStudioVersion%"=="15.0" (
@IF "%VisualStudioVersion%"=="15.0" or "%VisualStudioVersion%"=="16.0" (
@PUSHD "%VCINSTALLDIR%Redist\MSVC"
@FOR /D %%D IN (*) DO (
@PUSHD %%D
Expand Down

0 comments on commit 549b446

Please sign in to comment.