mix popcorn.build_runtime (Popcorn v0.3.1)
View SourceUtility 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 thegitoption)path- path to repo source (can be used instead ofgit)target-wasm(default) orunixout-dir- directory for the build artifacts (default:popcorn_runtime_source). Useful e.g. to keep a test-only runtime undertest/.cmake-opts- string with space-separatedKEY=VALUEoptions that will be converted to-DKEY=VALUEcmake options
This is a thin wrapper around scripts/build-atomvm.sh.
Summary
Functions
Callback implementation for Mix.Task.run/1.
Functions
Callback implementation for Mix.Task.run/1.