提交 22ad4a83 编写于 作者: A Alessandro Siniscalchi

update doc

上级 c701f0c8
...@@ -198,14 +198,11 @@ git submodule update --init --recursive ...@@ -198,14 +198,11 @@ git submodule update --init --recursive
<a name="build"></a> <a name="build"></a>
### Building from source code ### Building from source code
The *WASM_LLVM_CONFIG* environment variable is used to find our recently built WASM compiler.
This is needed to compile the example contracts inside `eos/contracts` folder and their respective tests.
```bash ```bash
cd ~ cd ~
git clone https://github.com/eosio/eos --recursive git clone https://github.com/eosio/eos --recursive
mkdir -p ~/eos/build && cd ~/eos/build mkdir -p ~/eos/build && cd ~/eos/build
cmake -DBINARYEN_BIN=~/binaryen/bin -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib .. cmake -DBINARYEN_BIN=~/binaryen/bin -DWASM_ROOT=~/wasm-compiler/llvm -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib ..
make -j$( nproc ) make -j$( nproc )
``` ```
...@@ -643,13 +640,6 @@ make -j$( nproc ) ...@@ -643,13 +640,6 @@ make -j$( nproc )
make install make install
``` ```
Add `WASM_LLVM_CONFIG` and `LLVM_DIR` to your `.bash_profile`:
```bash
echo "export WASM_LLVM_CONFIG=~/wasm-compiler/llvm/bin/llvm-config" >> ~/.bash_profile
echo "export LLVM_DIR=~/wasm-compiler/lib/cmake/llvm" >> ~/.bash_profile
source ~/.bash_profile
```
Your environment is set up. Now you can <a href="#runanode">build EOS and run a node</a>. Your environment is set up. Now you can <a href="#runanode">build EOS and run a node</a>.
<a name="manualdepfedora"></a> <a name="manualdepfedora"></a>
...@@ -724,13 +714,6 @@ cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=.. -DLLVM_TARGETS_TO_BUILD= -DL ...@@ -724,13 +714,6 @@ cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=.. -DLLVM_TARGETS_TO_BUILD= -DL
make -j$( nproc ) install make -j$( nproc ) install
``` ```
Add `WASM_LLVM_CONFIG` and `LLVM_DIR` to your `.bash_profile`:
```bash
echo "export WASM_LLVM_CONFIG=~/wasm-compiler/llvm/bin/llvm-config" >> ~/.bash_profile
echo "export LLVM_DIR=~/wasm-compiler/lib/cmake/llvm" >> ~/.bash_profile
source ~/.bash_profile
```
Your environment is set up. Now you can <a href="#runanode">build EOS and run a node</a>. Your environment is set up. Now you can <a href="#runanode">build EOS and run a node</a>.
<a name="manualdepubuntu"></a> <a name="manualdepubuntu"></a>
...@@ -806,13 +789,6 @@ cd build ...@@ -806,13 +789,6 @@ cd build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=.. -DLLVM_TARGETS_TO_BUILD= -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly -DCMAKE_BUILD_TYPE=Release ../ cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=.. -DLLVM_TARGETS_TO_BUILD= -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly -DCMAKE_BUILD_TYPE=Release ../
make -j4 install make -j4 install
``` ```
Add `WASM_LLVM_CONFIG` and `LLVM_DIR` to your `.bash_profile`:
```bash
echo "export WASM_LLVM_CONFIG=~/wasm-compiler/llvm/bin/llvm-config" >> ~/.bash_profile
echo "export LLVM_DIR=/usr/local/Cellar/llvm/4.0.1/lib/cmake/llvm" >> ~/.bash_profile
source ~/.bash_profile
```
Your environment is set up. Now you can <a href="#runanode">build EOS and run a node</a>. Your environment is set up. Now you can <a href="#runanode">build EOS and run a node</a>.
...@@ -889,11 +865,4 @@ make -j$( sysctl -in machdep.cpu.core_count ) ...@@ -889,11 +865,4 @@ make -j$( sysctl -in machdep.cpu.core_count )
make install make install
``` ```
Add `WASM_LLVM_CONFIG` and `LLVM_DIR` to your `.bash_profile`:
```bash
echo "export WASM_LLVM_CONFIG=~/wasm-compiler/llvm/bin/llvm-config" >> ~/.bash_profile
echo "export LLVM_DIR=/usr/local/Cellar/llvm@4/4.0.1/lib/cmake/llvm/" >> ~/.bash_profile
source ~/.bash_profile
```
Your environment is set up. Now you can <a href="#runanode">build EOS and run a node</a>. Your environment is set up. Now you can <a href="#runanode">build EOS and run a node</a>.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册