Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 656 Bytes

windows-build.md

File metadata and controls

27 lines (19 loc) · 656 Bytes

Build Nasal-Interpreter on Windows

MSVC / Visual Studio

Need CMake and Visual Studio 2022. Remember to add MSBuild.exe to Path.

Valid on powershell:

mkdir cmake-windows-msvc
cd cmake-windows-msvc
cmake .. -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022"
MSBuild.exe nasal.sln /p:Configuration=Release /p:Platform=x64

MingW-W64

Need CMake and MingW-W64. Remember to add MingW-W64 bin to Path.

Valid on powershell:

mkdir cmake-windows-mingw
cd cmake-windows-mingw
cmake .. -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles" -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
mingw32-make.exe -j6