mix popcorn.build_runtime (Popcorn v0.3.1)

View Source

Utility for building AtomVM from source

It outputs the artifacts in <out-dir>/artifacts/<target> (by default project_dir/popcorn_runtime_source/artifacts/<target>). To use the built artifacts in Popcorn, configure it with

config :popcorn, runtime: {:path, "popcorn_runtime_source/artifacts/<target>", target: target}

Options:

  • git - source repo URL (defaults to FissionVM repo)
  • git-ref - branch, tag or commit (only works with the git option)
  • path - path to repo source (can be used instead of git)
  • target - wasm (default) or unix
  • out-dir - directory for the build artifacts (default: popcorn_runtime_source). Useful e.g. to keep a test-only runtime under test/.
  • cmake-opts - string with space-separated KEY=VALUE options that will be converted to -DKEY=VALUE cmake options

This is a thin wrapper around scripts/build-atomvm.sh.

Summary

Functions

Callback implementation for Mix.Task.run/1.

Functions

run(args)

Callback implementation for Mix.Task.run/1.