Skip to content

Commit 7247002

Browse files
authored
Update docs
1 parent 4acfcae commit 7247002

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Emscripten-build-instructions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ emcmake cmake -DCMAKE_BUILD_TYPE=Release \
196196
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \
197197
-DCMAKE_INSTALL_PREFIX=$PREFIX \
198198
-DSYSROOT_PATH=$SYSROOT_PATH \
199+
-DCMAKE_C_FLAGS_RELEASE="-Oz -g0 -DNDEBUG" \
200+
-DCMAKE_CXX_FLAGS_RELEASE="-Oz -g0 -DNDEBUG" \
199201
../
200202
emmake make -j $(nproc --all) check-cppinterop
201203
```
@@ -214,6 +216,8 @@ emcmake cmake -DCMAKE_BUILD_TYPE=Release `
214216
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON `
215217
-DLLVM_ENABLE_WERROR=On `
216218
-DSYSROOT_PATH="$env:SYSROOT_PATH" `
219+
-DCMAKE_C_FLAGS_RELEASE="-Oz -g0 -DNDEBUG" `
220+
-DCMAKE_CXX_FLAGS_RELEASE="-Oz -g0 -DNDEBUG" `
217221
..\
218222
emmake make -j $(nproc --all) check-cppinterop
219223
```

docs/Emscripten-build-instructions.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ on Windows. Now to build and test your Emscripten build of CppInterOp on Linux a
221221
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \
222222
-DCMAKE_INSTALL_PREFIX=$PREFIX \
223223
-DSYSROOT_PATH=$SYSROOT_PATH \
224+
-DCMAKE_C_FLAGS_RELEASE="-Oz -g0 -DNDEBUG" \
225+
-DCMAKE_CXX_FLAGS_RELEASE="-Oz -g0 -DNDEBUG" \
224226
../
225227
emmake make -j $(nproc --all) check-cppinterop
226228
@@ -239,6 +241,8 @@ To build and test your Emscripten build of CppInterOp on Windows execute the fol
239241
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON `
240242
-DLLVM_ENABLE_WERROR=On `
241243
-DSYSROOT_PATH="$env:SYSROOT_PATH" `
244+
-DCMAKE_C_FLAGS_RELEASE="-Oz -g0 -DNDEBUG" `
245+
-DCMAKE_CXX_FLAGS_RELEASE="-Oz -g0 -DNDEBUG" `
242246
..\
243247
emmake make -j $(nproc --all) check-cppinterop
244248

0 commit comments

Comments
 (0)