ソースを参照

Update build wamrc aot compiler document (#570)

Wang Ning 5 年 前
コミット
afa1feb1a8
1 ファイル変更15 行追加6 行削除
  1. 15 6
      README.md

+ 15 - 6
README.md

@@ -60,19 +60,28 @@ WAMR supports building the iwasm VM core only (no app framework) to the mini pro
 
 ### Build wamrc AoT compiler
 
-Both wasm binary file and AoT file are supported by iwasm. The wamrc AoT compiler is to compile wasm binary file to AoT file which can also be run by iwasm. Execute following commands to build **wamrc** compiler:
+Both wasm binary file and AoT file are supported by iwasm. The wamrc AoT compiler is to compile wasm binary file to AoT file which can also be run by iwasm. Execute following commands to build **wamrc** compiler for Linux:
 
 ```shell
 cd wamr-compiler
-./build_llvm.sh (use build_llvm_xtensa.sh instead to support xtensa target; use build_llvm.py for windows)
+./build_llvm.sh (or "./build_llvm_xtensa.sh" to support xtensa target)
 mkdir build && cd build
-cmake ..
+cmake .. (or "cmake .. -DWAMR_BUILD_TARGET=darwin" for MacOS)
 make
-ln -s {current path}/wamrc /usr/bin/wamrc
+# wamrc is generated under current directory
 ```
-For MacOS, you should replace `cmake ..` with `cmake -DWAMR_BUILD_PLATFORM=darwin ..`.
 
-For Windows you should replace `cmake ..` with `cmake -D WAMR_BUILD_PLATFORM=windows -A Win32 ..`.
+For **Windows**:
+```shell
+cd wamr-compiler
+python build_llvm.py
+open LLVM.sln in wasm-micro-runtime\core\deps\llvm\win32build with Visual Studio
+build LLVM.sln Release
+mkdir build && cd build
+cmake ..
+cmake --build . --config Release
+# wamrc.exe is generated under .\Release directory
+```
 
 Application framework
 ===================================