Skip to content
Snippets Groups Projects
Select Git revision
  • 214dc747237b8a3ddce4267039ada25d0ab2f0e6
  • master default
  • isfile
  • nlf-fixes
  • newton-quadratic-equation-solver
  • nlf-fixes-r
  • nls-fixes
  • sep-fixes
  • sep
  • use-dprior
  • ep-sparse
  • rebase-1
  • parfor
  • reset-seed-in-unit-tests
  • remove-persistent-variables
  • nonlinear-filter-fixes
  • pac-mce-with-composite-target
  • 6.x
  • dprior
  • covariance-quadratic-approximation
  • benchmark-ec
  • 5.5
  • 5.4
  • 5.3
  • 5.2
  • 5.1
  • 5.0
  • 5.0-rc1
  • 4.7-beta3
  • 4.7-beta2
  • 4.7-beta1
  • 4.6.4
  • 4.6.3
  • 4.6.2
  • 4.6.1
  • 4.6.0
  • 4.6.0-rc2
  • 4.6.0-rc1
  • 4.6-beta1
  • 4.5.7
  • 4.5.6
41 results

dynare_estimation_init.m

Blame
  • Forked from Dynare / dynare
    Source project has a limited visibility.
    wasm.ini 1.81 KiB
    # Meson cross file for creating a WebAssembly version of the preprocessor.
    #
    # Requires emscripten to be installed.
    # Was successfully tested with emscripten 3.1.69 installed through emsdk
    # tool, as described on: https://emscripten.org/docs/getting_started/downloads.html
    # Don’t forget to source script snippet in current shell before running meson.
    #
    # Compilation creates a .wasm and .js wrapper under <builddir>/src/
    #
    # Can be run locally with node.js using:
    #  node dynare-preprocessor.js file.mod
    # NB: a version of node.js is shipped with emscripten (under the node/
    # subdirectory), but another version should also work.
    
    [binaries]
    cpp = 'em++'
    
    [host_machine]
    system = 'emscripten'
    # Could be changed to wasm64 if 4GB memory constraint is hit
    # Some background: https://v8.dev/blog/4gb-wasm-memory
    cpu_family = 'wasm32'
    cpu = 'wasm32'
    endian = 'little'
    
    [built-in options]
    # Never do a debug build, because otherwise the lack of optimisations can
    # overflow the memory capacities.
    buildtype = 'release'
    # The -fexceptions flag (for both compilation and linking) is needed for an
    # unknown reason (C++ compilers are supposed to always add exception support).
    # The -Wno-unqualified-std-cast-call flag removes many warnings about “move”
    # not being qualified with “std::” namespace.
    # The -fexperimental-library flag is needed to get std::jthread support (it was
    # supposed to no longer be necessary for LLVM 20, but for some reason we still
    # need it).
    cpp_args = [ '-fexceptions', '-Wno-unqualified-std-cast-call', '-fexperimental-library' ]
    # NODERAWFS=1 is needed for accessing the local filesystem
    cpp_link_args = [ '-s', 'NODERAWFS=1', '-fexceptions' ]
    
    [properties]
    # It’s necessary to use a different copy of Boost than the one under
    # /usr/include, because otherwise GCC headers confuse Clang
    boost_root = '/tmp/boost_1_86_0'