Closed am009 closed 1 year ago
Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR.
Overall summary:
The pull request adds support for building WasmEdge using MSVC on Windows. The key changes include adding instructions, PowerShell scripts, and test instructions specific to MSVC.
There are several potential problems identified in the patches. Firstly, the assumption of the presence of vswhere
and choco
tools should be documented as prerequisites. Secondly, instructions for obtaining and installing LLVM 16 and the Windows SDK should be included. Thirdly, the use of relative paths for the LLVM directory may not work in all scenarios, and instructions for specifying the absolute path should be provided. Lastly, there is duplicated code that needs to be refactored to avoid code duplication.
In addition, another set of key changes was identified in a subsequent summary. These changes include updating the required LLVM version to 16, updating the download links, and adding a note for users encountering errors with the community version of Visual Studio.
A potential problem identified in this set of changes is that the file paths for the LLVM directories are hard-coded in the script, which may cause issues if the directory structure changes in the future. The patch also lacks information about other dependencies or requirements that may have changed alongside the LLVM version.
In summary, the pull request brings valuable additions for Windows MSVC build support, but there are potential issues and errors such as missing prerequisites, hard-coded paths, missing dependency update instructions, and duplicated code that need to be addressed.
Key changes in the patch:
windows.md
file.Potential problems:
vswhere
and choco
tools, which may not be available on all systems. This should be documented as a prerequisite.windows.md
are repeated in the Chinese language version of the file. This should be refactored to avoid code duplication.Key changes:
Potential problems:
Hi @hydai
Please help review this PR. Thanks.
I am going to review this after the major PR of this feature gets merged in the wasmedge repo.
The main PR is merged. We can process this now.
Explanation
I'm working on adding support of MSVC for WasmEdge. This adds related docs for this new feature. See this issue https://github.com/WasmEdge/WasmEdge/issues/2629 See also this PR https://github.com/WasmEdge/WasmEdge/pull/2751
What type of PR is this