David Thompson d19fd417d0 make: Get distcheck workin' again. | 1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
basic-types.js | 1 year ago | |
basic-types.wat | 1 year ago | |
hof.gwat | 1 year ago | |
test-lib.js | 1 year ago |
In this directory we were testing manual compilations of Scheme to wasm. Now that we have the compiler working, this is no longer necessary and these files will bitrot. But, until we have all data types implemented in the compiler, the files in this directory are still useful.
You will need recent V8 and Binaryen. For binaryen:
git clone https://github.com/WebAssembly/binaryen
cd binaryen
git submodule init
git submodule update
cmake . -DCMAKE_BUILD_TYPE=Debug
make
For V8, there is thing annoying thing that you need to have
depot_tools
installed; see https://v8.dev/docs/source-code. Once you
have that see https://v8.dev/docs/build to build. You will end up with
a d8
binary in out/x64.release
(if you are on an x86-64 platform).
To run these tests, run make check
:
$ make check
~/src/binaryen/bin/wasm-as --enable-gc --enable-strings --enable-tail-call --enable-reference-types -o trivial-1.wasm trivial-1.wat
~/src/v8/out/x64.release/d8 --experimental-wasm-gc --experimental-wasm-stringref --experimental-wasm-return-call test.js -- trivial-1.wasm 1
expected: 1; got: 1