1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
half-reif-benchmarks/software/minizinc/docs/en/installation_detailed_wasm.rst

21 lines
829 B
ReStructuredText

.. _ch-installation_detailed_wasm:
Installation Instructions for Webassembly / JavaScript
------------------------------------------------------
Required development tools:
- CMake, version 3.4.0 or later (from https://cmake.org or e.g. through homebrew)
- emscripten sdk (from https://emscripten.org)
**Compiling MiniZinc:** Unpack the source code (or clone the git repository). Open a terminal and change into the source code directory. Make sure that the emscripten sdk is on your PATH, e.g. by sourcing the ``emsdk_env.sh`` script (see emscripten documentation). The following sequence of commands will build the MiniZinc compiler tool chain:
.. code-block:: bash
mkdir build
cd build
emconfigure cmake -DCMAKE_BUILD_TYPE=MinSizeRel ..
cmake --build .
Webassemble/JavaScript support is currently experimental.