Skip to content

Commit

Permalink
WASM: Add build_to_wasm script
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Aug 25, 2022
1 parent dd9d5a2 commit 3d8295f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build_to_wasm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -e
set -x

emcmake cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS_DEBUG="-Wall -Wextra -fexceptions" \
-DWITH_LLVM=no \
-DLPYTHON_BUILD_ALL=yes \
-DLPYTHON_BUILD_TO_WASM=yes \
-DWITH_STACKTRACE=no \
-DWITH_LSP=no \
-DWITH_LFORTRAN_BINARY_MODFILES=no \
-DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH_LFORTRAN;$CONDA_PREFIX" \
-DCMAKE_INSTALL_PREFIX=`pwd`/inst \
.
cmake --build . -j16

0 comments on commit 3d8295f

Please sign in to comment.