The wasi-sdk candidate had an LLVM version in it, which moves release to release — so the path advertised as the proper article would have matched only by coincidence, while the emscripten one beside it was derived. Both are derived now. calc-me on wasm32 covers what the other three cases cannot: flan_argv hands Flan an array of flan_slice built in C, so what it pins is the element stride of a ptr+len pair — 16 bytes native, 12 on wasm32 — rather than a field offset. It is also the claim in this file's own header, that the table runs on the second target, honoured for the first time. flan emit refuses --target rather than stripping it. The IR really is target-free, so ignoring it is correct and silence about it is not.
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
(tests
|
|
(names test_flan test_acceptance test_reload test_agent test_session test_dev test_emacs test_repl)
|
|
(libraries flan unix)
|
|
; The acceptance programs are part of the test corpus: if the reader, the
|
|
; parser or the checker regresses on them we want to know here, not at the CLI.
|
|
(deps
|
|
(file %{workspace_root}/calc-me.flan)
|
|
(file %{workspace_root}/sand.flan)
|
|
; The sim package and the raylib bindings, because the headless sand case and
|
|
; the FFI case import them and an import reads the directory at build time.
|
|
(glob_files %{workspace_root}/sand-sim/*)
|
|
(glob_files %{workspace_root}/vendor/raylib/*)
|
|
; The dev agent package: its Flan declarations and the C that implements them.
|
|
(glob_files %{workspace_root}/vendor/agent/*)
|
|
(glob_files programs/*.flan)
|
|
; The reload primitive's host: a C main that dlopens what Build.shared made.
|
|
(file reload_host.c)
|
|
; test_dev runs the compiler itself: flan dev launches and owns a program.
|
|
(file %{workspace_root}/bin/main.exe)
|
|
; The Emacs client, which test_emacs drives against a real daemon.
|
|
(glob_files %{workspace_root}/emacs/*.el)
|
|
; The WASI host the wasm32 case runs its module under, when no wasmtime or
|
|
; wasmer is installed.
|
|
(file wasm-run.mjs)))
|