Get the current master branch of Crystal. Compile a new crystal compiler:
$ make .build/crystalIn the crystal installation:
- create an empty
src/none.crfile; - replace
src/gc/none.cr; - place the
ygc.crfile at the root;
Compile the library (this will generate a .o or .obj file):
$ bin/crystal build --cross-compile --single-module --prelude=./none ygc.crBuild an executable program:
$ crystal build -Dgc_none app.crThe program should compile, link and run identically to the original gc/none.