@@ -35,12 +35,13 @@ This can be installed by executing (we only currently support version
35
35
git clone https://github.com/emscripten-core/emsdk.git
36
36
./emsdk/emsdk install 3.1.73
37
37
38
- and activate the emsdk environment
38
+ and activate the emsdk environment (we are defining SYSROOT_PATH for use later)
39
39
40
40
.. code :: bash
41
41
42
42
./emsdk/emsdk activate 3.1.73
43
43
source ./emsdk/emsdk_env.sh
44
+ export SYSROOT_PATH=$PWD /emsdk/upstream/emscripten/cache/sysroot
44
45
45
46
Now clone the 19.x release of the LLVM project repository and CppInterOp
46
47
(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
115
116
export CMAKE_PREFIX_PATH=$PREFIX
116
117
export CMAKE_SYSTEM_PREFIX_PATH=$PREFIX
117
118
118
- Now to build CppInterOp execute the following
119
+ Now to build and test your Emscripten build of CppInterOp by executing the following
119
120
120
121
.. code :: bash
121
122
@@ -128,7 +129,14 @@ Now to build CppInterOp execute the following
128
129
-DBUILD_SHARED_LIBS=ON \
129
130
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \
130
131
-DCMAKE_INSTALL_PREFIX=$PREFIX \
132
+ -DSYSROOT_PATH=$SYSROOT_PATH \
131
133
../
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
+
132
140
emmake make -j $( nproc --all) install
133
141
134
142
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
147
155
.. code :: bash
148
156
149
157
cd ../..
150
- export SYSROOT_PATH=$PWD /emsdk/upstream/emscripten/cache/sysroot
151
158
git clone --depth=1 https://github.com/compiler-research/xeus-cpp.git
152
159
cd ./xeus-cpp
153
160
mkdir build
0 commit comments