@@ -35,12 +35,13 @@ This can be installed by executing (we only currently support version
3535 git clone https://github.com/emscripten-core/emsdk.git
3636 ./emsdk/emsdk install 3.1.73
3737
38- and activate the emsdk environment
38+ and activate the emsdk environment (we are defining SYSROOT_PATH for use later)
3939
4040.. code :: bash
4141
4242 ./emsdk/emsdk activate 3.1.73
4343 source ./emsdk/emsdk_env.sh
44+ export SYSROOT_PATH=$PWD /emsdk/upstream/emscripten/cache/sysroot
4445
4546 Now clone the 19.x release of the LLVM project repository and CppInterOp
4647(the building of the emscripten version of llvm can be avoided by
@@ -115,7 +116,7 @@ You will also want to set a few environment variables
115116 export CMAKE_PREFIX_PATH=$PREFIX
116117 export CMAKE_SYSTEM_PREFIX_PATH=$PREFIX
117118
118- Now to build CppInterOp execute the following
119+ Now to build and test your Emscripten build of CppInterOp by executing the following
119120
120121.. code :: bash
121122
@@ -128,7 +129,14 @@ Now to build CppInterOp execute the following
128129 -DBUILD_SHARED_LIBS=ON \
129130 -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \
130131 -DCMAKE_INSTALL_PREFIX=$PREFIX \
132+ -DSYSROOT_PATH=$SYSROOT_PATH \
131133 ../
134+ emmake make -j $( nproc --all) check-cppinterop
135+
136+ Assuming it passes all test you can install by executing the following.
137+
138+ .. code :: bash
139+
132140 emmake make -j $( nproc --all) install
133141
134142 Once this finishes building we need to take note of where we built
@@ -147,7 +155,6 @@ build folder, you can build the wasm version of xeus-cpp by executing
147155.. code :: bash
148156
149157 cd ../..
150- export SYSROOT_PATH=$PWD /emsdk/upstream/emscripten/cache/sysroot
151158 git clone --depth=1 https://github.com/compiler-research/xeus-cpp.git
152159 cd ./xeus-cpp
153160 mkdir build
0 commit comments