Idris2/tests/node/nomangle001/run
Zoe Stafford 3063218d46
[ new ] Add %nomangle (#2063)
This is (for once) not a breaking changes, instead backends will need to opt in to this change, using the utilities in Compiler.NoMangle. See the js backend for an example of how to do this.

This is the first step to being able to use idris to create libraries usable by other languages.
2021-11-09 16:23:50 +00:00

8 lines
303 B
Plaintext

rm -rf build
$1 nomangle.idr --no-color --no-banner --console-width 0 -o test1 --cg node
$1 nomangle.idr --no-color --no-banner --console-width 0 -o test2 --cg node --directive minimal
cat build/exec/test1 | grep -e foo -e baz -e another_name
cat build/exec/test2 | grep -e foo -e baz -e another_name