File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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 ../
200202emmake 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```
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments