From 79870b7eeb68504ebc45df4d08d8d1857332e817 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 20 Mar 2021 23:15:17 +0200 Subject: [PATCH] Fix windows build instructions --- docs/Development.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/Development.md b/docs/Development.md index b5cce38..0008221 100644 --- a/docs/Development.md +++ b/docs/Development.md @@ -48,8 +48,6 @@ Recommended tools: ```sh # Prepare environment (if needed): "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat" -set PATH=C:\Program Files\CMake\bin;%PATH% -set PATH=C:\Program Files\LLVM\bin;%PATH% set PATH=C:\Python36-32\;C:\Python36-32\Scripts\;%PATH% ``` @@ -60,26 +58,29 @@ set PATH=C:\Python36-32\;C:\Python36-32\Scripts\;%PATH% mkdir build cd build -# Clang, x64 +# Configure Clang, x64 cmake -G"Visual Studio 16 2019" -A x64 -T ClangCL .. -cmake --build . --config Release -# Clang, x86 +# Configure Clang, x86 cmake -G"Visual Studio 16 2019" -A Win32 -T ClangCL .. -cmake --build . --config Release -# MSVC, x64 +# Configure MSVC, x64 cmake -G"Visual Studio 16 2019" -A x64 .. -cmake --build . --config Release -# MSVC, x86 +# Configure MSVC, x86 cmake -G"Visual Studio 16 2019" -A Win32 .. + +# Build cmake --build . --config Release +cp ./Release/wasm3.exe ./ ``` ### Build with Ninja ```sh +set PATH=C:\Program Files\CMake\bin;%PATH% +set PATH=C:\Program Files\LLVM\bin;%PATH% + # Clang cmake -GNinja -DCLANG_CL=1 .. ninja